xmlBase::ParseException Class Reference

Exception class for XmlParser, XmlErrorHandler. More...

#include <XmlErrorHandler.h>

List of all members.

Public Member Functions

 ParseException (const std::string &extraInfo="")
virtual ~ParseException () throw ()
virtual std::string getMsg ()
virtual const char * what ()

Protected Attributes

std::string m_name

Private Attributes

std::string m_extra


Detailed Description

Exception class for XmlParser, XmlErrorHandler.

Definition at line 16 of file XmlErrorHandler.h.


Constructor & Destructor Documentation

xmlBase::ParseException::ParseException ( const std::string extraInfo = ""  )  [inline]

Definition at line 18 of file XmlErrorHandler.h.

00018                                                     : std::exception(),
00019       m_name("ParseException"), m_extra(extraInfo) {}

virtual xmlBase::ParseException::~ParseException (  )  throw () [inline, virtual]

Definition at line 20 of file XmlErrorHandler.h.

00020 {}


Member Function Documentation

virtual std::string xmlBase::ParseException::getMsg (  )  [inline, virtual]

Definition at line 21 of file XmlErrorHandler.h.

References m_extra, m_name, and deljobs::string.

Referenced by main().

00021                                {
00022       std::string msg = m_name + ": " + m_extra;
00023       return msg;}

virtual const char* xmlBase::ParseException::what (  )  [inline, virtual]

Definition at line 24 of file XmlErrorHandler.h.

References m_extra.

00024                                {
00025       return m_extra.c_str();
00026     }


Member Data Documentation

std::string xmlBase::ParseException::m_extra [private]

Definition at line 30 of file XmlErrorHandler.h.

Referenced by getMsg(), and what().

std::string xmlBase::ParseException::m_name [protected]

Definition at line 28 of file XmlErrorHandler.h.

Referenced by getMsg().


Generated on Tue Nov 29 23:36:39 2016 for BOSS_7.0.2 by  doxygen 1.4.7