libwreport 2.1
|
Reports that memory allocation has failed. More...
#include <error.h>
Public Member Functions | |
error_alloc (const char *msg) | |
ErrorCode | code () const throw () |
Exception-specific error code. | |
virtual const char * | what () const throw () |
Throw the exception, building the message printf-style. | |
Data Fields | |
const char * | msg |
error message returned by what() |
Reports that memory allocation has failed.
wreport::error_alloc::error_alloc | ( | const char * | msg | ) | [inline] |
msg | error message. It is a plain const char* in this case in order to keep things as simple as possible in case we really are very short of memory. |
ErrorCode wreport::error_alloc::code | ( | ) | const throw () [inline, virtual] |
Exception-specific error code.
This is useful to map C++ exceptions to C or Fortran error codes
Implements wreport::error.
References wreport::WR_ERR_ALLOC.