libwreport 2.1
Public Member Functions | Static Public Member Functions | Data Fields
wreport::error_handles Struct Reference

For functions working with handles, reports a problem with handling handles, such as impossibility to allocate a new one, or an invalid handle being passed to the function. More...

#include <error.h>

Inheritance diagram for wreport::error_handles:
wreport::error

Public Member Functions

 error_handles (const std::string &msg)
ErrorCode code () const throw ()
 Exception-specific error code.
virtual const char * what () const throw ()
 Error message.

Static Public Member Functions

static void throwf (const char *fmt,...) WREPORT_THROWF_ATTRS(1
 Throw the exception, building the message printf-style.

Data Fields

std::string msg
 error message returned by what()

Detailed Description

For functions working with handles, reports a problem with handling handles, such as impossibility to allocate a new one, or an invalid handle being passed to the function.


Constructor & Destructor Documentation

wreport::error_handles::error_handles ( const std::string &  msg) [inline]
Parameters:
msgerror message

Member Function Documentation

ErrorCode wreport::error_handles::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_HANDLES.


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