org.llm4s.error.ExecutionError
See theExecutionError companion object
@Stable
final case class ExecutionError 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") - Companion
- object
- Graph
-
- Supertypes
-
trait RecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article