![]() |
YANE-Framework 1.1.0
|
Exception due to accessing invalid array index.
Public Member Functions | |
const char * | debugmessage () const throw ( ) |
Function to return debug information. | |
bool | isType (const std::string &type) const throw ( ) |
Function to check if the invocation line of this instance is of the given type. | |
bool | stackTraceContainsType (const std::string &type) const throw ( ) |
Function to check if a certain type of exception is contained in the invocation line of this instance. | |
virtual const char * | what () const throw ( ) |
Function to display the error message. | |
Static Public Member Functions | |
static std::string | concatDebugMessage (const char *functionname, int line, std::string message) |
Function to generate a debug error message using the name of the function in which the error occured, the corresponding line number and the error message. | |
static std::string | concatMessage (const std::string &type, const std::string &message) |
Function to generate a formated error message from a string and an error message. | |
static void | enableDebugMessage (bool enable=false) |
Function to globally set the output of debug information using the what() message. | |
Static Public Attributes | |
static const std::string | TYPE = std::string ( "yane::Utils::IndexException" ) |
Type string of the exception. | |
Protected Member Functions | |
void | addType (std::string type) |
Function to add a type string. | |
Protected Attributes | |
std::string | _debugmess |
Debug information, deprecated and to be remove in next release. | |
std::string | _message |
Error message, deprecated and to be removed in next release. | |
int | _number |
Length of the invocation line. | |
std::vector< std::string > | _stacktypes |
Type strings of the exception stack. | |
std::vector< std::string > | _types |
Type strings of all elements of the invocation line. | |
Static Protected Attributes | |
static bool | _printdebug = false |
Decision variable whether debug information are to be displayed. |
LIB_EXPORT void yane::Utils::Exception::addType | ( | std::string | type | ) | [protected, inherited] |
Function to add a type string
type | Type string |
LIB_EXPORT std::string yane::Utils::Exception::concatDebugMessage | ( | const char * | functionname, |
int | line, | ||
std::string | message | ||
) | [static, inherited] |
Function to generate a debug error message using the name of the function in which the error occured, the corresponding line number and the error message
functionname | Name of the function in which the error occured |
line | Line number in which the error occured |
message | Error message |
LIB_EXPORT std::string yane::Utils::Exception::concatMessage | ( | const std::string & | type, |
const std::string & | message | ||
) | [static, inherited] |
Function to generate a formated error message from a string and an error message
type | Type string |
message | Error message |
LIB_EXPORT const char * yane::Utils::Exception::debugmessage | ( | ) | const throw ( ) [inherited] |
Function to return debug information
LIB_EXPORT void yane::Utils::Exception::enableDebugMessage | ( | bool | enable = false | ) | [static, inherited] |
Function to globally set the output of debug information using the what() message
enable | true if debug information is to be displayed |
LIB_EXPORT bool yane::Utils::Exception::isType | ( | const std::string & | type | ) | const throw ( ) [inherited] |
Function to check if the invocation line of this instance is of the given type
type | Type string |
LIB_EXPORT bool yane::Utils::Exception::stackTraceContainsType | ( | const std::string & | type | ) | const throw ( ) [inherited] |
Function to check if a certain type of exception is contained in the invocation line of this instance
type | Type string |
LIB_EXPORT const char * yane::Utils::Exception::what | ( | ) | const throw ( ) [virtual, inherited] |
Function to display the error message