libwreport  2.4
Public Member Functions | Data Fields
wreport::error_alloc Struct Reference

Reports that memory allocation has failed. More...

#include <error.h>

Inheritance diagram for wreport::error_alloc:
wreport::error

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()

Additional Inherited Members

- Static Public Member Functions inherited from wreport::error
static const char * strerror (ErrorCode code)
 String description for an error code.

Detailed Description

Reports that memory allocation has failed.

Constructor & Destructor Documentation

wreport::error_alloc::error_alloc ( const char *  msg)
inline
Parameters
msgerror 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.

Member Function Documentation

ErrorCode wreport::error_alloc::code ( ) const throw ()
inlinevirtual

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.


The documentation for this struct was generated from the following file: