Jido. Exec. Error
(Jido Action v3.0.0-beta.12)
View Source
Defines errors for the target-neutral asynchronous execution lifecycle.
Action and Flow failures keep their original error types. These errors cover only handle validation, message handling, waiting, cancellation, and failures of the managed asynchronous execution process.
Summary
Functions
Creates an asynchronous cancellation error.
Creates an asynchronous execution-process error.
Creates an invalid-handle error.
Returns whether a value is an error owned by the async execution boundary.
Creates an asynchronous wait timeout error.
Converts an async execution error into its public map.
Types
Functions
@spec cancelled_error(String.t(), details_input()) :: Jido.Exec.Error.CancelledError.t()
Creates an asynchronous cancellation error.
@spec execution_error(String.t(), details_input()) :: Jido.Exec.Error.AsyncExecutionError.t()
Creates an asynchronous execution-process error.
@spec invalid_handle_error(String.t(), details_input()) :: Jido.Exec.Error.InvalidHandleError.t()
Creates an invalid-handle error.
Returns whether a value is an error owned by the async execution boundary.
@spec timeout_error(String.t(), details_input()) :: Jido.Exec.Error.AsyncTimeoutError.t()
Creates an asynchronous wait timeout error.
@spec to_map(Exception.t()) :: error_map()
Converts an async execution error into its public map.
Detail values stay unchanged. A caller that sends the map through JSON or another transport must convert its own detail values for that transport.