Commit ec87eff1 authored by Dominik Charousset's avatar Dominik Charousset

added new exit reason `user_shutdown`

parent bb3d7991
...@@ -53,7 +53,8 @@ static constexpr std::uint32_t unhandled_exception = 0x00002; ...@@ -53,7 +53,8 @@ static constexpr std::uint32_t unhandled_exception = 0x00002;
/** /**
* @brief Indicates that an event-based actor * @brief Indicates that an event-based actor
* tried to use receive(). * tried to use {@link receive()} or a strongly typed actor tried
* to call {@link become()}.
*/ */
static constexpr std::uint32_t unallowed_function_call = 0x00003; static constexpr std::uint32_t unallowed_function_call = 0x00003;
...@@ -68,6 +69,12 @@ static constexpr std::uint32_t unhandled_sync_failure = 0x00004; ...@@ -68,6 +69,12 @@ static constexpr std::uint32_t unhandled_sync_failure = 0x00004;
*/ */
static constexpr std::uint32_t unhandled_sync_timeout = 0x00005; static constexpr std::uint32_t unhandled_sync_timeout = 0x00005;
/**
* @brief Indicates that the actor was forced to shutdown by
* a user-generated event.
*/
static constexpr std::uint32_t user_shutdown = 0x00010;
/** /**
* @brief Indicates that an actor finishied execution * @brief Indicates that an actor finishied execution
* because a connection to a remote link was * because a connection to a remote link was
......
...@@ -67,6 +67,8 @@ To obtain a string representation of an error code, use \lstinline^cppa::exit_re ...@@ -67,6 +67,8 @@ To obtain a string representation of an error code, use \lstinline^cppa::exit_re
\hline \hline
\lstinline^unhandled_sync_timeout^ & 5 & Actor was killed, because no timeout handler was set and a synchronous message timed out \\ \lstinline^unhandled_sync_timeout^ & 5 & Actor was killed, because no timeout handler was set and a synchronous message timed out \\
\hline \hline
\lstinline^user_shutdown^ & 16 & Actor was killed by a user-generated event \\
\hline
\lstinline^remote_link_unreachable^ & 257 & Indicates that a remote actor became unreachable, e.g., due to connection error \\ \lstinline^remote_link_unreachable^ & 257 & Indicates that a remote actor became unreachable, e.g., due to connection error \\
\hline \hline
\lstinline^user_defined^ & 65536 & Minimum value for user-defined exit codes \\ \lstinline^user_defined^ & 65536 & Minimum value for user-defined exit codes \\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment