libwreport  2.8
Public Member Functions | Static Public Member Functions | Data Fields
wreport::error_parse Struct Reference

Report an error when parsing informations. More...

#include <error.h>

Inheritance diagram for wreport::error_parse:
wreport::error

Public Member Functions

 error_parse (const std::string &msg)
 
 error_parse (const char *file, int line, 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 *file, int line, const char *fmt,...) WREPORT_THROWF_ATTRS(3
 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

Report an error when parsing informations.

Constructor & Destructor Documentation

wreport::error_parse::error_parse ( const std::string &  msg)
inline
Parameters
msgerror message
wreport::error_parse::error_parse ( const char *  file,
int  line,
const std::string &  msg 
)
Parameters
fileThe file that is being parsed
lineThe line of the file where the problem has been found
msgThe error message

Member Function Documentation

ErrorCode wreport::error_parse::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_PARSE.


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