#[non_exhaustive]pub enum ModelInvocationError {
Show 24 variants
Integrity {
source: ModelInvocationIntegrityError,
},
JournalTenantMismatch,
JournalRunMismatch,
JournalDidNotAdvance {
previous: JournalSequence,
actual: JournalSequence,
},
ClockRegression {
previous: Timestamp,
actual: Timestamp,
},
RevisionOverflow,
InvalidInitialShape,
InvalidSuccessorShape,
PreviousTenantMismatch,
PreviousRunMismatch,
PreviousInvocationMismatch,
PreviousRevisionMismatch {
previous: ModelInvocationRevision,
actual: ModelInvocationRevision,
},
TransitionDigestMismatch,
InvalidTransition {
status: ModelInvocationStatus,
transition: ModelInvocationTransitionKind,
},
TransitionStateMismatch,
ReusedAttemptId,
RetryNotAuthorized,
RetryDelayOutOfRange,
RetryDelayNotElapsed {
not_before: Timestamp,
actual: Timestamp,
},
ResponseAttemptMismatch,
ResponseBinding {
source: ModelResponseError,
},
ErrorBinding {
source: ModelErrorValidationError,
},
PreparationFailureHasUsage,
DigestMismatch,
}Expand description
Invalid model invocation record, transition, provenance, or integrity layer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Integrity
Canonical typed integrity material could not be serialized.
Fields
source: ModelInvocationIntegrityErrorExact canonical integrity failure.
JournalTenantMismatch
Journal head crossed the invocation tenant boundary.
JournalRunMismatch
Journal head named another run.
JournalDidNotAdvance
A revision did not strictly advance its required journal predecessor.
Fields
previous: JournalSequenceRequired prior sequence.
actual: JournalSequenceRejected current sequence.
ClockRegression
A revision’s durable clock preceded its required predecessor.
Fields
RevisionOverflow
No storage-compatible successor revision exists.
InvalidInitialShape
Revision zero did not use the exact preparation shape.
InvalidSuccessorShape
A successor omitted or unexpectedly added predecessor/transition fields.
PreviousTenantMismatch
Compact predecessor crossed the immutable tenant boundary.
PreviousRunMismatch
Compact predecessor named another run.
PreviousInvocationMismatch
Compact predecessor named another logical invocation.
PreviousRevisionMismatch
Current revision was not the exact successor of its compact predecessor.
Fields
previous: ModelInvocationRevisionPredecessor revision.
actual: ModelInvocationRevisionRejected current revision.
TransitionDigestMismatch
Persisted transition checksum did not match its transition payload.
InvalidTransition
Transition is not legal from the predecessor lifecycle state.
Fields
status: ModelInvocationStatusPredecessor status.
transition: ModelInvocationTransitionKindRejected transition kind.
TransitionStateMismatch
Transition payload and resulting state differed.
ReusedAttemptId
A retry reused the immediately preceding physical attempt identity.
RetryNotAuthorized
Failed outcome did not explicitly authorize a safe retry.
RetryDelayOutOfRange
Retry time could not be represented in the canonical timestamp range.
RetryDelayNotElapsed
Retry occurred before the failure’s explicit minimum delay elapsed.
Fields
ResponseAttemptMismatch
Successful response named another physical attempt.
ResponseBinding
Successful response did not match the descriptor/request snapshot.
Fields
source: ModelResponseErrorExact response validation failure.
ErrorBinding
Failure evidence did not match attempt, model, mode, or request limits.
Fields
source: ModelErrorValidationErrorExact failure validation error.
PreparationFailureHasUsage
A pre-dispatch preparation failure claimed provider usage.
DigestMismatch
Persisted complete record checksum did not match its fields.
Trait Implementations§
Source§impl Clone for ModelInvocationError
impl Clone for ModelInvocationError
Source§impl Debug for ModelInvocationError
impl Debug for ModelInvocationError
Source§impl Display for ModelInvocationError
impl Display for ModelInvocationError
impl Eq for ModelInvocationError
Source§impl Error for ModelInvocationError
impl Error for ModelInvocationError
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()