ErrorNoMem Class Reference
Error class for memory allocation errors. More...
#include <error.hpp>
Inheritance diagram for ErrorNoMem:
Public Member Functions | |
| ErrorNoMem (const ErrorLocation &loc) | |
| Constructor for memory allocation error with standard error message. More... | |
| ErrorNoMem (const ErrorLocation &loc, const std::string &str) | |
| Constructor for memory allocation error with custom error message. More... | |
Public Member Functions inherited from Error | |
| Error () | |
| Default constructor for error class. More... | |
| Error (const std::string &str) | |
| Constructor for error class with error message. More... | |
| Error (const ErrorLocation &loc) | |
| Constructor for error class with location information. More... | |
| Error (const ErrorLocation &loc, const std::string &str) | |
| Constructor for error class with location information and error message. More... | |
| std::string | get_error_message (void) |
| Return error message. More... | |
| void | print_error_message (std::ostream &os, bool traceprint=true) |
| Print a standard error message to os. More... | |
Public Member Functions inherited from ExceptionTracer | |
| ExceptionTracer () | |
| Default constructor for exception tracer. Saves the backtrace of the program at this location for printing it when the error is caught. More... | |
| void | print_trace (std::ostream &os) |
| Print the backtrace to os. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Error | |
| std::string | _error_str |
Detailed Description
Error class for memory allocation errors.
Constructor & Destructor Documentation
| 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.
The documentation for this class was generated from the following files:
- error.hpp
- error.cpp
Public Member Functions inherited from