class Gambit::special_exception

GAMBIT special exception class. Not logged, meant for always catching.

#include <exceptions.hpp>

Inherits from std::exception

Inherited by Gambit::halt_loop_exception, Gambit::invalid_loop_iteration_exception, Gambit::invalid_point_exception

Public Functions

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.
virtual voidraise(const std::string & msg)
Raise the exception, i.e. throw it.

Public Attributes

Name
intinvalidcode
Integer code used for exceptions.

Protected Attributes

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

Public Functions Documentation

function special_exception

special_exception(
    const char * what
)

Constructor.

GAMBIT special exception class methods.

Constructor

function ~special_exception

inline virtual ~special_exception()

Destructor.

function what

virtual const char * what() const

Retrieve the identity of the exception.

function message

std::string message()

Retrieve the message that this exception was raised with.

function raise

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

Raise the exception, i.e. throw it.

Reimplemented by: Gambit::invalid_point_exception::raise

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

Public Attributes Documentation

variable invalidcode

int invalidcode;

Integer code used for exceptions.

Protected Attributes Documentation

variable myMessage

std::string myMessage;

The message passed when this exception is raised.


Updated on 2024-07-18 at 13:53:30 +0000