Skip to main content

RuntimeError

Enum RuntimeError 

Source
pub enum RuntimeError {
Show 32 variants InvalidStateTransition, DuplicateStateTransition, Unauthorized, Forbidden, InvalidAppIdentity, IncompatibleRuntimeContract, StorageUnavailable, VaultLocked, SyncRejected, CommandRejected, HandlerAlreadyRegistered(CommandName), HandlerNotFound(CommandName), PluginAlreadyRegistered, MissingManifest, EmptyCommandId, EmptyEventId, InvalidIdentifier { kind: &'static str, value: String, reason: &'static str, }, InvalidRequest { kind: &'static str, reason: &'static str, }, LockPoisoned { resource: &'static str, }, RegistryItemAlreadyRegistered { kind: &'static str, name: String, }, RegistryItemNotFound { kind: &'static str, name: String, }, MissingConfiguration { name: &'static str, }, IncompatibleIdentity(CompatibilityStatus), IncompatibleCoreIdentity(CoreCompatibilityStatus), MissingCapabilityNamed { capability: String, }, RegistryError(String), DuplicateRegistryItem { kind: String, }, InvalidIdempotencyKey { reason: &'static str, }, IdempotencyStoreIo { operation: &'static str, message: String, }, IdempotencyConflict { key: String, }, IdempotencyPending { key: String, }, OperationalJournalIo { operation: &'static str, message: String, },
}
Expand description

Standard runtime error categories.

Variants§

§

InvalidStateTransition

A requested lifecycle transition is not allowed from the current state.

§

DuplicateStateTransition

The same state transition was registered more than once.

§

Unauthorized

Authentication was absent or invalid.

§

Forbidden

Authentication succeeded but the operation is not permitted.

§

InvalidAppIdentity

Application identity fields are internally inconsistent.

§

IncompatibleRuntimeContract

Runtime contract versions are incompatible.

§

StorageUnavailable

The configured storage boundary is unavailable.

§

VaultLocked

Secret storage is locked.

§

SyncRejected

A synchronization operation was rejected.

§

CommandRejected

A command was rejected before successful execution.

§

HandlerAlreadyRegistered(CommandName)

A command handler already exists for the supplied command name.

§

HandlerNotFound(CommandName)

No command handler exists for the supplied command name.

§

PluginAlreadyRegistered

The same plugin instance was registered more than once.

§

MissingManifest

A required Runtime manifest is absent.

§

EmptyCommandId

A command envelope contains an empty command identity.

§

EmptyEventId

An event envelope contains an empty event identity.

§

InvalidIdentifier

A validated identifier was rejected.

Fields

§kind: &'static str

Identifier type.

§value: String

Rejected non-sensitive value.

§reason: &'static str

Stable validation reason.

§

InvalidRequest

A request failed structural validation.

Fields

§kind: &'static str

Request category.

§reason: &'static str

Stable validation reason.

§

LockPoisoned

A shared Runtime resource could not be locked.

Fields

§resource: &'static str

Logical resource name.

§

RegistryItemAlreadyRegistered

A named registry item already exists.

Fields

§kind: &'static str

Registry item category.

§name: String

Repeated item name.

§

RegistryItemNotFound

A named registry item was not found.

Fields

§kind: &'static str

Registry item category.

§name: String

Requested item name.

§

MissingConfiguration

Required Runtime configuration is absent.

Fields

§name: &'static str

Missing configuration field.

§

IncompatibleIdentity(CompatibilityStatus)

Two Runtime identities are incompatible.

§

IncompatibleCoreIdentity(CoreCompatibilityStatus)

Two distributed Core identities are incompatible.

§

MissingCapabilityNamed

A required generic capability is absent.

Fields

§capability: String

Missing capability name.

§

RegistryError(String)

A registry returned a controlled error.

§

DuplicateRegistryItem

A registry contains a duplicate item category.

Fields

§kind: String

Duplicate item category.

§

InvalidIdempotencyKey

An idempotency key failed validation.

Fields

§reason: &'static str

Stable validation reason.

§

IdempotencyStoreIo

Durable idempotency storage failed.

Fields

§operation: &'static str

Storage operation being performed.

§message: String

Non-sensitive I/O detail.

§

IdempotencyConflict

An idempotency key was reused with a different request.

Fields

§key: String

Conflicting key.

§

IdempotencyPending

An equivalent request is still being processed.

Fields

§key: String

Pending key.

§

OperationalJournalIo

Durable operational audit or event journal failed.

Fields

§operation: &'static str

Stable journal operation.

§message: String

Non-sensitive failure detail.

Trait Implementations§

Source§

impl Clone for RuntimeError

Source§

fn clone(&self) -> RuntimeError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimeError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for RuntimeError

Source§

impl PartialEq for RuntimeError

Source§

fn eq(&self, other: &RuntimeError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RuntimeError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.