TimeoutError
org.llm4s.error.TimeoutError
final case class TimeoutError(message: String, timeoutDuration: Duration, operation: String, cause: Option[Throwable], context: Map[String, String]) extends LLMError, RecoverableError
Timeout errors that can potentially succeed with a different timeout or retry.
Represents operations that exceeded their time limit. As a RecoverableError, these can be retried with longer timeouts or exponential backoff strategies.
Value parameters
- cause
-
Optional underlying exception
- context
-
Additional key-value context for debugging
- message
-
Human-readable error description
- operation
-
The operation that timed out (e.g., "api-call", "completion")
- timeoutDuration
-
The timeout duration that was exceeded
Attributes
- Example
-
import scala.concurrent.duration._ val error = TimeoutError("Request timed out", 30.seconds, "api-call") .withContext("endpoint", "https://api.openai.com") - Graph
-
- Supertypes
-
trait RecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article