Reports that memory allocation has failed.
More...
#include <error.h>
|
| | error_alloc (const char *msg) |
| |
| ErrorCode | code () const noexcept override |
| | Exception-specific error code.
|
| |
| const char * | what () const noexcept override |
| | Throw the exception, building the message printf-style.
|
| |
|
|
const char * | msg |
| | error message returned by what()
|
| |
|
|
static const char * | strerror (ErrorCode code) |
| | String description for an error code.
|
| |
Reports that memory allocation has failed.
◆ error_alloc()
| wreport::error_alloc::error_alloc |
( |
const char * | msg | ) |
|
|
inline |
- Parameters
-
| 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. |
References msg.
◆ code()
| ErrorCode wreport::error_alloc::code |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
Exception-specific error code.
This is useful to map C++ exceptions to C or Fortran error codes
Implements wreport::error.
◆ what()
| const char * wreport::error_alloc::what |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
Throw the exception, building the message printf-style.
Implements wreport::error.
References msg.
The documentation for this class was generated from the following file: