JsonCpp project page JsonCpp home page

Json::Exception Class Reference

Base class for all exceptions we throw. More...

#include <json/value.h>

Inherits std::exception.

Inherited by Json::LogicError, and Json::RuntimeError.

Collaboration diagram for Json::Exception:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Exception (std::string const &msg)
virtual ~Exception () throw ()
virtual char const * what () const throw ()

Protected Attributes

std::string const msg_

Detailed Description

Base class for all exceptions we throw.

We use nothing but these internally. Of course, STL can throw others.

Definition at line 40 of file value.h.


Constructor & Destructor Documentation

Json::Exception::Exception ( std::string const &  msg  ) 

Definition at line 156 of file json_value.cpp.

Json::Exception::~Exception (  )  throw () [virtual]

Definition at line 159 of file json_value.cpp.


Member Function Documentation

char const * Json::Exception::what (  )  const throw () [virtual]

Definition at line 161 of file json_value.cpp.

References msg_.


Member Data Documentation

std::string const Json::Exception::msg_ [protected]

Definition at line 46 of file value.h.

Referenced by what().


The documentation for this class was generated from the following files: