Error class for memory allocation errors. More...
#include <error.hpp>
Public Member Functions | |
ErrorNoMem (const ErrorLocation &loc) | |
Constructor for memory allocation error with standard error message. | |
ErrorNoMem (const ErrorLocation &loc, const std::string &str) | |
Constructor for memory allocation error with custom error message. |
Error class for memory allocation errors.
ErrorNoMem::ErrorNoMem | ( | const ErrorLocation & | loc | ) |
Constructor for memory allocation error with standard error message.
The error message is "memory allocation error".
ErrorNoMem::ErrorNoMem | ( | const ErrorLocation & | loc, |
const std::string & | str | ||
) |
Constructor for memory allocation error with custom error message.