Exceptions declared in header

resolves #272
This commit is contained in:
Christopher Dunn
2015-07-23 00:19:12 -05:00
parent 6ed877c77c
commit 949babd7b0
2 changed files with 18 additions and 20 deletions

View File

@@ -152,23 +152,6 @@ static inline void releaseStringValue(char* value) { free(value); }
namespace Json {
class JSON_API Exception : public std::exception {
public:
Exception(std::string const& msg);
virtual ~Exception() throw();
virtual char const* what() const throw();
protected:
std::string const msg_;
};
class JSON_API RuntimeError : public Exception {
public:
RuntimeError(std::string const& msg);
};
class JSON_API LogicError : public Exception {
public:
LogicError(std::string const& msg);
};
Exception::Exception(std::string const& msg)
: msg_(msg)
{}