class Gambit::error

GAMBIT error class.

#include <exceptions.hpp>

Inherits from Gambit::exception, std::exception

Public Functions

Name
error(const char * message, const char * inikey)
GAMBIT error class constructors.
error(const char * message, const char * inikey, LogTag t1)
Constructor with 1 log tag.
error(const char * message, const char * inikey, LogTag t1, LogTag t2)
Constructor with 2 log tags.
error(const char * message, const char * inikey, LogTag t1, LogTag t2, LogTag t3)
Constructor with 3 log tags.
error(const char * message, const char * inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4)
Constructor with 4 log tags.
error(const char * message, const char * inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5)
Constructor with 5 log tags.
error(const char * message, const char * inikey, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5, LogTag t6)
Constructor with 6 log tags.
error(const char * message, const char * inikey, std::set< LogTag > tags)
Constructor with log tags as a set.

Additional inherited members

Public Functions inherited from Gambit::exception

Name
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal)
Constructor without log tags.
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal, LogTag t1)
Constructor with 1 log tag.
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal, LogTag t1, LogTag t2)
Constructor with 2 log tags.
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal, LogTag t1, LogTag t2, LogTag t3)
Constructor with 3 log tags.
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal, LogTag t1, LogTag t2, LogTag t3, LogTag t4)
Constructor with 4 log tags.
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5)
Constructor with 5 log tags.
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5, LogTag t6)
Constructor with 6 log tags.
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal, LogTag t1, LogTag t2, LogTag t3, LogTag t4, LogTag t5, LogTag t6, LogTag t7)
Constructor with 7 log tags.
exception(const char * kind, const char * what, const char * message, const char * inikey, bool fatal, std::set< LogTag > tags)
Constructor with log tags as a set.
voidforced_throw(const std::string & origin, const std::string & specific_message)
Log the exception and throw it regardless of whether is is fatal or not.
voidsilent_forced_throw()
As per forced_throw but without logging.
virtual~exception()
Destructor.
voidset_fatal(bool fatal)
Setter for the fatal flag.
virtual const char *what() const
Retrieve the identity of the exception.
voidraise(const std::string & origin, const std::string & specific_message)
const std::map< const char *, exception * > &all_exceptions()
Get a read-only map of pointers to all instances of this class.
voidset_parameters(std::string params)
Set the parameter point string to append if a fatal exception is thrown.

Protected Attributes inherited from Gambit::exception

Name
std::set< LogTag >myLogTags
The set of tags to be passed to the logger.

Public Functions Documentation

function error

error(
    const char * message,
    const char * inikey
)

GAMBIT error class constructors.

Constructors

Constructor without log tags

Constructor without log tags

function error

error(
    const char * message,
    const char * inikey,
    LogTag t1
)

Constructor with 1 log tag.

function error

error(
    const char * message,
    const char * inikey,
    LogTag t1,
    LogTag t2
)

Constructor with 2 log tags.

function error

error(
    const char * message,
    const char * inikey,
    LogTag t1,
    LogTag t2,
    LogTag t3
)

Constructor with 3 log tags.

function error

error(
    const char * message,
    const char * inikey,
    LogTag t1,
    LogTag t2,
    LogTag t3,
    LogTag t4
)

Constructor with 4 log tags.

function error

error(
    const char * message,
    const char * inikey,
    LogTag t1,
    LogTag t2,
    LogTag t3,
    LogTag t4,
    LogTag t5
)

Constructor with 5 log tags.

function error

error(
    const char * message,
    const char * inikey,
    LogTag t1,
    LogTag t2,
    LogTag t3,
    LogTag t4,
    LogTag t5,
    LogTag t6
)

Constructor with 6 log tags.

function error

error(
    const char * message,
    const char * inikey,
    std::set< LogTag > tags
)

Constructor with log tags as a set.


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