Documentation Home >> Headers >> <jss/actor.hpp> Header >> jss::no_actor class

A simple class thrown by jss::actor::self() and jss::actor::receive() if they are called from a thread that is not running an actor.

namespace jss
{
    class no_actor:
        public std::runtime_error
    {};
}
Header

#include <jss/actor.hpp>

Exceptions of this type are thrown if an actor function is called from a thread that is not running an actor.

See Also