|
CookMem 1.4.0
A C++ memory context / allocator
|
#include <exception.h>
Public Member Functions | |
| Exception (MemError_et error, const char *msg, const char *file=nullptr, int line=0) | |
| MemError_et | getError () const |
| const char * | getMessage () const |
| const char * | getFile () const |
| int | getLine () const |
A simple memory related exception.
|
inline |
Constructor.
| error | the type of the error. |
| msg | the message associated with this exception. |
| file | the source file where the error was detected. |
| line | the line number where the error was detected. |
|
inline |
Get the exception error.
Get the file where the exception got thrown.
|
inline |
Get the line number of where the exception got thrown.
Get the exception message.