Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A class used for memory allocation failures. More...
#include <alloc_failure.hpp>
Public Member Functions | |
AllocFailure (const char *error_s) | |
Construct an Exception for a memory allocation failure. More... | |
~AllocFailure () throw () | |
virtual const char * | what () const throw () |
Get the string describing the cause of this AllocFailure. More... | |
A class used for memory allocation failures.
This is a thin wrapper on top of bad_alloc, allowing the error message to be set when constructing the Exception.
AllocFailure | ( | const char * | error_s | ) |
Construct an Exception for a memory allocation failure.
error_s | The string describing the cause of this AllocFailure. |
~AllocFailure | ( | ) | ||
throw | ( | |||
) |
|
virtual |
Get the string describing the cause of this AllocFailure.