pub enum Error {
Show 13 variants
Exists {
path: ActorPath,
},
NotFound {
path: ActorPath,
},
SystemStopped,
Send {
reason: String,
},
UnexpectedResponse {
path: ActorPath,
expected: String,
},
SendEvent {
reason: String,
},
StoreOperation {
operation: String,
reason: String,
},
Helper {
name: String,
reason: String,
},
Retry,
ActorStopped,
Timeout {
ms: u128,
},
Functional {
description: String,
},
FunctionalCritical {
description: String,
},
}Expand description
Error type for the actor system.
Variants§
Exists
Actor already exists at the specified path.
This error indicates an attempt to create an actor at a path that is already occupied.
NotFound
Actor not found at the specified path.
This error indicates that no actor exists at the requested path.
SystemStopped
Actor creation was attempted while the system was stopping or already stopped.
Send
Failed to send a message to an actor.
This error occurs when a message cannot be delivered to an actor’s mailbox.
UnexpectedResponse
Actor returned an unexpected response type.
This error occurs when an actor’s response doesn’t match the expected type.
Fields
SendEvent
Failed to send an event to the event bus.
This error occurs when an event cannot be published to the event bus.
StoreOperation
A store operation failed.
This error covers various store operations that don’t fit into more specific error categories.
Fields
Helper
Failed to access a helper.
This error occurs when a required helper cannot be accessed.
Fields
Retry
Maximum number of retry attempts reached.
This error occurs when an operation has been retried the maximum allowed number of times without success.
ActorStopped
The actor was stopped before processing this message.
This error occurs when an actor is shutting down and discards non-critical messages from its mailbox.
Timeout
The ask request timed out before the actor responded.
Functional
A recoverable functional error.
This error indicates a problem that doesn’t compromise the system’s overall operation and may be recoverable.
FunctionalCritical
A critical functional error.
This error indicates a problem that compromises the system’s operation and requires intervention.