Value | Meaning |
---|---|
normal | Indicates that an actor finished execution without error. |
unhandledException | Indicates that an actor died because of an unhandled exception. |
unknown | Indicates that the exit reason for this actor is unknown, i.e., the actor has been terminated and no longer exists. |
userShutdown | Indicates that an actor was forced to shutdown by a user-generated event. |
kill | Indicates that an actor was killed unconditionally. |
:user_shutdown and exit_reason::kill. The former is used to signalize orderly, user-requested shutdown and can be used by programmers in the same way. The latter terminates an actor unconditionally when used in send_exit, even for actors that override the default handler (see Exit Handler). This error category represents fail conditions for actors.
A special kind of error codes are exit reasons of actors. These errors are usually fail states set by the actor system itself. The two exceptions are