pub type InvokeError = GuestError;Expand description
A structured error returned to a guest by circlet.invoke.
The exact same shape as GuestError, so a caller that invokes another
action can propagate invoke(...)?; directly out of a fallible
guest_main! handler without copying or losing fields.
Aliased Type§
pub struct InvokeError {
pub code: String,
pub message: String,
pub detail: Option<Vec<u8>>,
pub retry_after_ms: Option<u64>,
}Fields§
§code: StringMachine-readable error code in the embedder’s vocabulary
(for example "invalid", "not_found", "conflict", "busy").
message: StringHuman-readable explanation of what failed.
detail: Option<Vec<u8>>Optional structured detail bytes, opaque to Circlet.
retry_after_ms: Option<u64>Optional hint of how long to wait before retrying, in milliseconds.