Skip to main content

Module error

Module error 

Source
Expand description

Top-level error types for the Actor-RTC framework.

§Design

Two layers only:

NetworkError   (transport-internal, never exposed to users)
     ↓  From
ActrError      (public, flat enum — what callers see)

RuntimeError and ProtocolError have been removed.

§Error classification

Every error belongs to one fault domain (ErrorKind):

KindMeaningRetry?DLQ?
TransientEnvironmental fluctuationyesno
ClientCaller error (bad request)nono
InternalFramework bug / panicnono
CorruptData corruptionnoyes

Use the Classify trait to query classification from any error type.

Enums§

ActrError
Top-level framework error, returned to all callers.
ErrorKind
Fault domain classification for any framework error.

Traits§

Classify
Fault-domain classification for error types.

Type Aliases§

ActorResult
Result type for actor RPC calls.