nidas v1.2.3
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
nidas::core::SampleParseException Class Reference

#include <SampleParseException.h>

Inheritance diagram for nidas::core::SampleParseException:
Inheritance graph
[legend]

Public Member Functions

 SampleParseException (const std::string &what, const std::string &msg)
 Create a ParseException, passing a name of what you're trying to parse, a message, and the line number of the document.
 
 SampleParseException (const std::string &message)
 Create an ParseException, passing a message.
 
SampleParseExceptionclone () const
 clone myself (a "virtual" constructor).
 
virtual int getErrno () const
 
virtual std::string toString () const throw ()
 
virtual const charwhat () 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
 

Constructor & Destructor Documentation

◆ SampleParseException() [1/2]

nidas::core::SampleParseException::SampleParseException ( const std::string & what,
const std::string & msg )
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().

◆ SampleParseException() [2/2]

nidas::core::SampleParseException::SampleParseException ( const std::string & message)
inline

Create an ParseException, passing a message.

Member Function Documentation

◆ clone()

SampleParseException * nidas::core::SampleParseException::clone ( ) const
inlinevirtual

clone myself (a "virtual" constructor).

Reimplemented from nidas::util::Exception.

References SampleParseException().

◆ errnoToString()

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

◆ getErrno()

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

◆ 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: