ExecutionError
org.llm4s.error.ExecutionError
final case class ExecutionError(message: String, operation: String, exitCode: Option[Int], cause: Option[Throwable], context: Map[String, String]) extends LLMError, RecoverableError
Execution errors that might succeed on retry.
Represents errors from command or process execution that may be transient, such as temporary resource unavailability or intermittent failures. As a RecoverableError, retry strategies can be applied.
Value parameters
- cause
-
Optional underlying exception
- context
-
Additional key-value context for debugging
- exitCode
-
Optional process exit code if applicable
- message
-
Human-readable error description
- operation
-
The operation that failed (e.g., "bash-script", "api-call")
Attributes
- Example
-
val error = ExecutionError("Command failed", "bash-script") .withExitCode(1) .withContext("command", "npm install") - Graph
-
- Supertypes
-
trait RecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article