JSONError Class Reference

Base exception used by JSON parser. More...

#include <errors.h>

Inheritance diagram for JSONError:

ConversionError FileError LexerError NonIndexedError NoSuchMemberError FileNotFoundError FileReadError BadStartCharError EndOfInputError MissingDataError RangeError List of all members.

Public Member Functions

 JSONError (std::string message)
 Construct a JSON error.
virtual ~JSONError ()
 Destructor is declared virtual, as it always should be.
virtual const std::string & GetMessage () const
 Returns the error message describing this error.

Protected Attributes

std::string m_Message
 The error message.

Detailed Description

Base exception used by JSON parser.

Author:
Matthew Welch


Constructor & Destructor Documentation

JSONError::JSONError ( std::string  message  )  [inline]

Construct a JSON error.

Parameters:
message Message indicating what went wrong

virtual JSONError::~JSONError (  )  [inline, virtual]

Destructor is declared virtual, as it always should be.


Member Function Documentation

virtual const std::string& JSONError::GetMessage (  )  const [inline, virtual]

Returns the error message describing this error.


Member Data Documentation

std::string JSONError::m_Message [protected]

The error message.


The documentation for this class was generated from the following file:
Generated on Wed Apr 18 15:50:12 2007 for JSON Parser by  doxygen 1.5.2