#[non_exhaustive]pub enum OrchestratorError {
Show 15 variants
InvalidInput(InvalidInputError),
Unauthorized(AuthorizationError),
Provider(ProviderFailure),
Target(TargetError),
Reduction(ReductionError),
Interaction(InteractionError),
Policy(PolicyError),
RevisionConflict(RevisionConflict),
DomainRejected(DomainRejection),
Execution(ExecutionError),
ExternalOutcomeUnknown(UnknownOutcome),
Store(StoreError),
InvariantViolation(InvariantViolation),
Erasure(ErasureError),
Internal {
code: String,
},
}Expand description
Top-level error of a turn (spec §24).
The wire form is adjacently tagged ({"kind": ..., "detail": ...}): several
variants wrap another tagged error, and an internal tag would write two
kind keys into one object, so the outer variant was lost on the way back.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidInput(InvalidInputError)
The turn input is malformed.
The actor is not allowed.
Provider(ProviderFailure)
A model provider failed.
Target(TargetError)
Target resolution failed.
Reduction(ReductionError)
Reduction failed.
Interaction(InteractionError)
Interaction lifecycle error.
Policy(PolicyError)
Policy refused.
RevisionConflict(RevisionConflict)
A stale revision was detected.
DomainRejected(DomainRejection)
The domain rejected.
Execution(ExecutionError)
Execution failed.
ExternalOutcomeUnknown(UnknownOutcome)
An external effect has an unknown outcome.
Store(StoreError)
Persistence failed.
InvariantViolation(InvariantViolation)
A Flow Map invariant was violated.
Erasure(ErasureError)
The erasure boundary failed.
Internal
A library invariant failed: canonical hashing or an internal serialization the library itself produced. Never caused by user input.
Fields
code: StringStable code, one of the constants in internal_code.
Trait Implementations§
Source§impl Clone for OrchestratorError
impl Clone for OrchestratorError
Source§impl Debug for OrchestratorError
impl Debug for OrchestratorError
Source§impl<'de> Deserialize<'de> for OrchestratorError
impl<'de> Deserialize<'de> for OrchestratorError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for OrchestratorError
impl Display for OrchestratorError
impl Eq for OrchestratorError
Source§impl Error for OrchestratorError
impl Error for OrchestratorError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl ErrorClassification for OrchestratorError
impl ErrorClassification for OrchestratorError
Source§fn effect_may_have_happened(&self) -> bool
fn effect_may_have_happened(&self) -> bool
Source§fn user_message_key(&self) -> &'static str
fn user_message_key(&self) -> &'static str
Source§fn severity(&self) -> ErrorSeverity
fn severity(&self) -> ErrorSeverity
Source§fn reconciliation_required(&self) -> bool
fn reconciliation_required(&self) -> bool
Source§impl From<AuthorizationError> for OrchestratorError
impl From<AuthorizationError> for OrchestratorError
Source§fn from(value: AuthorizationError) -> Self
fn from(value: AuthorizationError) -> Self
Source§impl From<DomainRejection> for OrchestratorError
impl From<DomainRejection> for OrchestratorError
Source§fn from(value: DomainRejection) -> Self
fn from(value: DomainRejection) -> Self
Source§impl From<ErasureError> for OrchestratorError
impl From<ErasureError> for OrchestratorError
Source§fn from(value: ErasureError) -> Self
fn from(value: ErasureError) -> Self
Source§impl From<ExecutionError> for OrchestratorError
impl From<ExecutionError> for OrchestratorError
Source§fn from(value: ExecutionError) -> Self
fn from(value: ExecutionError) -> Self
Source§impl From<HashError> for OrchestratorError
impl From<HashError> for OrchestratorError
Source§impl From<InteractionError> for OrchestratorError
impl From<InteractionError> for OrchestratorError
Source§fn from(value: InteractionError) -> Self
fn from(value: InteractionError) -> Self
Source§impl From<InvalidInputError> for OrchestratorError
impl From<InvalidInputError> for OrchestratorError
Source§fn from(value: InvalidInputError) -> Self
fn from(value: InvalidInputError) -> Self
Source§impl From<InvariantViolation> for OrchestratorError
impl From<InvariantViolation> for OrchestratorError
Source§fn from(value: InvariantViolation) -> Self
fn from(value: InvariantViolation) -> Self
Source§impl From<PolicyError> for OrchestratorError
impl From<PolicyError> for OrchestratorError
Source§fn from(value: PolicyError) -> Self
fn from(value: PolicyError) -> Self
Source§impl From<ProviderFailure> for OrchestratorError
impl From<ProviderFailure> for OrchestratorError
Source§fn from(value: ProviderFailure) -> Self
fn from(value: ProviderFailure) -> Self
Source§impl From<ReductionError> for OrchestratorError
impl From<ReductionError> for OrchestratorError
Source§fn from(value: ReductionError) -> Self
fn from(value: ReductionError) -> Self
Source§impl From<RevisionConflict> for OrchestratorError
impl From<RevisionConflict> for OrchestratorError
Source§fn from(value: RevisionConflict) -> Self
fn from(value: RevisionConflict) -> Self
Source§impl From<StoreError> for OrchestratorError
impl From<StoreError> for OrchestratorError
Source§fn from(value: StoreError) -> Self
fn from(value: StoreError) -> Self
Source§impl From<TargetError> for OrchestratorError
impl From<TargetError> for OrchestratorError
Source§fn from(value: TargetError) -> Self
fn from(value: TargetError) -> Self
Source§impl From<UnknownOutcome> for OrchestratorError
impl From<UnknownOutcome> for OrchestratorError
Source§fn from(value: UnknownOutcome) -> Self
fn from(value: UnknownOutcome) -> Self
Source§impl PartialEq for OrchestratorError
impl PartialEq for OrchestratorError
Source§impl Serialize for OrchestratorError
impl Serialize for OrchestratorError
impl StructuralPartialEq for OrchestratorError
Auto Trait Implementations§
impl Freeze for OrchestratorError
impl RefUnwindSafe for OrchestratorError
impl Send for OrchestratorError
impl Sync for OrchestratorError
impl Unpin for OrchestratorError
impl UnsafeUnpin for OrchestratorError
impl UnwindSafe for OrchestratorError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.