libwreport  2.9
Public Member Functions | Static Public Member Functions | Data Fields
wreport::error_notfound Struct Reference

Reports that a search-like function could not find what was requested. More...

#include <error.h>

Inheritance diagram for wreport::error_notfound:
wreport::error

Public Member Functions

 error_notfound (const std::string &msg)
 
ErrorCode code () const throw ()
 Exception-specific error code. More...
 
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.
 
- Static Public Member Functions inherited from wreport::error
static const char * strerror (ErrorCode code)
 String description for an error code.
 

Data Fields

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

Detailed Description

Reports that a search-like function could not find what was requested.

Constructor & Destructor Documentation

wreport::error_notfound::error_notfound ( const std::string &  msg)
inline
Parameters
msgerror message

Member Function Documentation

ErrorCode wreport::error_notfound::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_NOTFOUND.


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