Commit f004eac7 authored by Dominik Charousset's avatar Dominik Charousset

Move `fail_state()` to `local_actor`

parent a549eb38
...@@ -296,13 +296,6 @@ public: ...@@ -296,13 +296,6 @@ public:
/// is signalized to other actors after `act()` returns. /// is signalized to other actors after `act()` returns.
void fail_state(error err); void fail_state(error err);
// -- observers --------------------------------------------------------------
/// Returns the current exit reason.
inline const error& fail_state() {
return fail_state_;
}
// -- customization points --------------------------------------------------- // -- customization points ---------------------------------------------------
/// Blocks until at least one message is in the mailbox. /// Blocks until at least one message is in the mailbox.
......
...@@ -290,6 +290,13 @@ public: ...@@ -290,6 +290,13 @@ public:
/// The default implementation throws a `std::logic_error`. /// The default implementation throws a `std::logic_error`.
virtual error load_state(deserializer& source, const unsigned int version); virtual error load_state(deserializer& source, const unsigned int version);
/// Returns the currently defined fail state. If this reason is not
/// `none` then the actor will terminate with this error after executing
/// the current message handler.
inline const error& fail_state() const {
return fail_state_;
}
// -- here be dragons: end of public interface ------------------------------- // -- here be dragons: end of public interface -------------------------------
/// @cond PRIVATE /// @cond PRIVATE
......
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