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

Exception which can be built from an xerces::XMLException, xercesc::SAXException, or xercesc::DOMException. More...

#include <XMLException.h>

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

Public Member Functions

 XMLException (const std::string &msg)
 Create an XMLException from a string;.
 
 XMLException (const xercesc::XMLException &e)
 Create an XMLException from a xercesc::XMLException.
 
 XMLException (const xercesc::SAXException &e)
 Create an XMLException from a xercesc::SAXException.
 
 XMLException (const xercesc::DOMException &e)
 Create an XMLException from a xercesc::DOMException.
 
XMLExceptionclone () 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
 

Detailed Description

Exception which can be built from an xerces::XMLException, xercesc::SAXException, or xercesc::DOMException.

Simplifies XML exception handling.

Constructor & Destructor Documentation

◆ XMLException() [1/4]

nidas::core::XMLException::XMLException ( const std::string & msg)
inline

Create an XMLException from a string;.

Referenced by clone().

◆ XMLException() [2/4]

nidas::core::XMLException::XMLException ( const xercesc::XMLException & e)

Create an XMLException from a xercesc::XMLException.

References nidas::util::Exception::_what, and nidas::core::getSample().

◆ XMLException() [3/4]

nidas::core::XMLException::XMLException ( const xercesc::SAXException & e)

Create an XMLException from a xercesc::SAXException.

◆ XMLException() [4/4]

nidas::core::XMLException::XMLException ( const xercesc::DOMException & e)

Create an XMLException from a xercesc::DOMException.

Member Function Documentation

◆ clone()

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

clone myself (a "virtual" constructor).

Reimplemented from nidas::util::Exception.

References XMLException().

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