class Gambit::invalid_point_exception

Gambit invalid point exception class.

#include <exceptions.hpp>

Inherits from Gambit::special_exception, std::exception

Public Functions

Name
invalid_point_exception()
Constructor.
voidset_thrower(functor * thrown_from)
Set the pointer to the functor that threw the invalid point exception.
functor *thrower()
Retrieve pointer to the functor that threw the invalid point exception.
virtual voidraise(const std::string & msg)
Raise the exception, i.e. throw it. Exact override of base method.
virtual voidraise(const std::string & msg, int code)
Raise the exception, i.e. throw it with a message and code.

Additional inherited members

Public Functions inherited from Gambit::special_exception

Name
special_exception(const char * what)
Constructor.
virtual~special_exception()
Destructor.
virtual const char *what() const
Retrieve the identity of the exception.
std::stringmessage()
Retrieve the message that this exception was raised with.

Public Attributes inherited from Gambit::special_exception

Name
intinvalidcode
Integer code used for exceptions.

Protected Attributes inherited from Gambit::special_exception

Name
std::stringmyMessage
The message passed when this exception is raised.

Public Functions Documentation

function invalid_point_exception

invalid_point_exception()

Constructor.

Gambit invalid point exception class methods.

Constructor

function set_thrower

void set_thrower(
    functor * thrown_from
)

Set the pointer to the functor that threw the invalid point exception.

function thrower

functor * thrower()

Retrieve pointer to the functor that threw the invalid point exception.

function raise

virtual void raise(
    const std::string & msg
)

Raise the exception, i.e. throw it. Exact override of base method.

Reimplements: Gambit::special_exception::raise

Raise the invalid point exception, i.e throw it with a message and a default code.

function raise

virtual void raise(
    const std::string & msg,
    int code
)

Raise the exception, i.e. throw it with a message and code.

Raise the invalid point exception, i.e. throw it with a message and a code.


Updated on 2023-06-26 at 21:36:50 +0000