base Json::Exception

This commit is contained in:
Christopher Dunn
2015-03-08 12:20:06 -05:00
parent 717b08695e
commit 75279ccec2
2 changed files with 25 additions and 0 deletions

View File

@@ -152,6 +152,18 @@ static inline void releaseStringValue(char* value) { free(value); }
namespace Json {
Exception::Exception(std::string const& msg)
: msg_(msg)
, future_use_(NULL)
{
}
Exception::~Exception() throw()
{}
char const* Exception::what() const throw()
{
return msg_.c_str();
}
// //////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////
// //////////////////////////////////////////////////////////////////