|
| IndexUnderflow (const char *file, int line, const char *function, SignedSize index=0, Size size=0) noexcept |
|
| BaseException () noexcept |
| Default constructor. More...
|
|
| BaseException (const char *file, int line, const char *function) noexcept |
| Constructor. More...
|
|
| BaseException (const char *file, int line, const char *function, const std::string &name, const std::string &message) noexcept |
| Constructor. More...
|
|
| BaseException (const BaseException &exception) noexcept |
| Copy constructor. More...
|
|
virtual | ~BaseException () noexcept |
| Destructor. More...
|
|
const char * | getName () const noexcept |
| Returns the name of the exception. More...
|
|
virtual const char * | what () const noexcept |
| Returns the error message of the exception. More...
|
|
int | getLine () const noexcept |
| Returns the line number where it occurred. More...
|
|
const char * | getFile () const noexcept |
| Returns the file where it occurred. More...
|
|
const char * | getFunction () const noexcept |
| Returns the function where it occurred. More...
|
|
const char * | getMessage () const noexcept |
| Returns the message. More...
|
|
void | setMessage (const std::string &message) noexcept |
| Modify the exception's error message. More...
|
|
Int underflow exception.
Throw this exception to indicate an index that was smaller than allowed. The constructor has two additional arguments, the values of which should be set to the index that caused the failure and the smallest allowed value to simplify debugging.
- Parameters
-
index | the value of the index causing the problem |
size | smallest value allowed for index |