BALL
1.4.79
|
#include <BALL/COMMON/exception.h>
Public Member Functions | |
IndexOverflow (const char *file, int line, Index index=0, Size size=0) | |
Public Member Functions inherited from BALL::Exception::GeneralException | |
GeneralException () | |
Default constructor. More... | |
GeneralException (const char *file, int line) | |
Constructor. More... | |
GeneralException (const char *file, int line, const String &name, const String &message) | |
Constructor. More... | |
GeneralException (const GeneralException &exception) | |
Copy constructor. More... | |
virtual | ~GeneralException () throw () |
Destructor. More... | |
const char * | getName () const |
Returns the name of the exception. More... | |
const char * | getMessage () const |
Returns the error message of the exception. More... | |
void | setMessage (const std::string &message) |
Modify the exception's error message. More... | |
int | getLine () const |
Returns the line number where it occured. More... | |
const char * | getFile () const |
Returns the file where it occured. More... | |
Protected Attributes | |
Size | size_ |
Index | index_ |
Protected Attributes inherited from BALL::Exception::GeneralException | |
const char * | file_ |
int | line_ |
std::string | name_ |
std::string | message_ |
Index overflow. Throw this exception to indicate an index that was larger than allowed. The constructor has two additional arguments, the values of which should be set to the index that caused the failure and the largest allowed value to simplify debugging.
index | the value of the index causing the problem |
size | largest value allowed for index |
Definition at line 162 of file COMMON/exception.h.
BALL::Exception::IndexOverflow::IndexOverflow | ( | const char * | file, |
int | line, | ||
Index | index = 0 , |
||
Size | size = 0 |
||
) |
|
protected |
Definition at line 171 of file COMMON/exception.h.
|
protected |
Definition at line 170 of file COMMON/exception.h.