pub enum ActrError {
Unavailable(String),
TimedOut,
NotFound(String),
PermissionDenied(String),
InvalidArgument(String),
UnknownRoute(String),
DependencyNotFound {
service_name: String,
message: String,
},
DecodeFailure(String),
NotImplemented(String),
Internal(String),
}Expand description
Top-level framework error, returned to all callers.
Flat enum — no nested error wrapping. Each variant is self-describing.
Variants§
Peer temporarily unavailable: connection lost, overloaded, or reconnecting.
ErrorKind::Transient — retry with backoff.
TimedOut
Request deadline exceeded.
ErrorKind::Transient — may retry with a fresh deadline.
NotFound(String)
Target actor not found.
ErrorKind::Client — do not retry; check service discovery first.
PermissionDenied(String)
Permission denied by ACL.
ErrorKind::Client — do not retry; fix authorization.
InvalidArgument(String)
Invalid argument or malformed request.
ErrorKind::Client — do not retry; fix the request.
UnknownRoute(String)
No handler registered for the given route key.
ErrorKind::Client — do not retry; check service definition.
DependencyNotFound
Required dependency not found in the lock file.
ErrorKind::Client — do not retry; fix the manifest.
DecodeFailure(String)
Protobuf decode failure — message data is corrupted.
ErrorKind::Corrupt — route to Dead Letter Queue; do not retry.
NotImplemented(String)
Feature not yet implemented.
ErrorKind::Internal — do not retry.
Internal(String)
Internal framework error: bug, panic, or unrecoverable state.
ErrorKind::Internal — do not retry; investigate logs.
Trait Implementations§
Source§impl Error for ActrError
impl Error for ActrError
1.30.0 · 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()