code::XMLDecoder::FormatException Class Reference

Inheritance diagram for code::XMLDecoder::FormatException:

code::Exception List of all members.

Detailed Description

Thrown by the XML decoder if there is a format problem, for example, if an expected tag is not present in the XML input.

Author:
Lakshman
Version:
Id
code_XMLDecoder.h,v 1.14 2009/06/02 20:17:37 lakshman Exp


Public Member Functions

 FormatException (const std::string &element, const std::string &message)
const std::string & getErrorElement () const
 Returns the element, located in the XML document, whose parsing caused the error to be thrown.
virtual ~FormatException ()
const std::string & getMessage () const


Constructor & Destructor Documentation

code::XMLDecoder::FormatException::FormatException ( const std::string &  element,
const std::string &  message 
)

virtual code::XMLDecoder::FormatException::~FormatException (  )  [inline, virtual]


Member Function Documentation

const std::string& code::XMLDecoder::FormatException::getErrorElement (  )  const [inline]

Returns the element, located in the XML document, whose parsing caused the error to be thrown.

the string 'document' is returned if the error lies in the structure of the document itself and not in any particular element.

const std::string& code::Exception::getMessage (  )  const [inline, inherited]


Generated on Fri May 4 13:40:11 2012 for WDSS-IIw2 by  doxygen 1.4.7