nidas v1.2.3
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Member Functions | List of all members
nidas::util::ParseException Class Reference

#include <ParseException.h>

Inheritance diagram for nidas::util::ParseException:
Inheritance graph
[legend]

Public Member Functions

 ParseException (const std::string &what, const std::string &msg, int lineno)
 Create a ParseException, passing a name of what you're trying to parse, a message, and the line number of the document.
 
 ParseException (const std::string &what, const std::string &msg)
 Create a ParseException, passing a name of what you're trying to parse, and a message.
 
 ParseException (const std::string &message)
 Create an ParseException, passing a message.
 
Exceptionclone () const
 clone myself (a "virtual" constructor).
 
virtual int getErrno () const
 
virtual std::string toString () const throw ()
 
virtual const char * what () const throw ()
 

Static Public Member Functions

static std::string errnoToString (int err)
 Return string description of an errno (from errno.h).
 

Protected Attributes

std::string _what
 
int _errno
 

Static Private Member Functions

static std::string linenoToString (int lineno)
 

Constructor & Destructor Documentation

◆ ParseException() [1/3]

nidas::util::ParseException::ParseException ( const std::string & what,
const std::string & msg,
int lineno )
inline

Create a ParseException, passing a name of what you're trying to parse, a message, and the line number of the document.

Referenced by clone().

◆ ParseException() [2/3]

nidas::util::ParseException::ParseException ( const std::string & what,
const std::string & msg )
inline

Create a ParseException, passing a name of what you're trying to parse, and a message.

◆ ParseException() [3/3]

nidas::util::ParseException::ParseException ( const std::string & message)
inline

Create an ParseException, passing a message.

Member Function Documentation

◆ clone()

Exception * nidas::util::ParseException::clone ( ) const
inlinevirtual

clone myself (a "virtual" constructor).

Reimplemented from nidas::util::Exception.

References ParseException().

◆ errnoToString()

string nidas::util::Exception::errnoToString ( int err)
staticinherited

◆ getErrno()

virtual int nidas::util::Exception::getErrno ( ) const
inlinevirtualinherited

◆ linenoToString()

static std::string nidas::util::ParseException::linenoToString ( int lineno)
inlinestaticprivate

◆ toString()

virtual std::string nidas::util::Exception::toString ( ) const
throw ( )
inlinevirtualinherited

◆ what()

virtual const char * nidas::util::Exception::what ( ) const
throw ( )
inlinevirtualinherited

Member Data Documentation

◆ _errno

int nidas::util::Exception::_errno
protectedinherited

◆ _what

std::string nidas::util::Exception::_what
protectedinherited

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