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.
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.
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
InvalidRequest
A request failed structural validation.
LockPoisoned
A shared Runtime resource could not be locked.
RegistryItemAlreadyRegistered
A named registry item already exists.
RegistryItemNotFound
A named registry item was not found.
MissingConfiguration
Required Runtime configuration is absent.
IncompatibleIdentity(CompatibilityStatus)
Two Runtime identities are incompatible.
IncompatibleCoreIdentity(CoreCompatibilityStatus)
Two distributed Core identities are incompatible.
MissingCapabilityNamed
A required generic capability is absent.
RegistryError(String)
A registry returned a controlled error.
DuplicateRegistryItem
A registry contains a duplicate item category.
InvalidIdempotencyKey
An idempotency key failed validation.
IdempotencyStoreIo
Durable idempotency storage failed.
Fields
IdempotencyConflict
An idempotency key was reused with a different request.
IdempotencyPending
An equivalent request is still being processed.
OperationalJournalIo
Durable operational audit or event journal failed.
Trait Implementations§
Source§impl Clone for RuntimeError
impl Clone for RuntimeError
Source§fn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more