diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-09-01 00:28:41 -0400 |
|---|---|---|
| committer | Alexander Taylor <ajtaylor@fuzyll.com> | 2023-09-01 13:18:59 -0400 |
| commit | 3a2115bcdcfbca0432afad84f4877187f72514a2 (patch) | |
| tree | c33d689280b37e2c04d6f655d6ea66e4adc26fbd /json/jsoncpp.cpp | |
| parent | 9cc14bb1edbd111530ee1e936fe5e59de9450832 (diff) | |
Make asserts from jsoncpp more descriptive
Diffstat (limited to 'json/jsoncpp.cpp')
| -rw-r--r-- | json/jsoncpp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/json/jsoncpp.cpp b/json/jsoncpp.cpp index 4154200b..307cf560 100644 --- a/json/jsoncpp.cpp +++ b/json/jsoncpp.cpp @@ -2653,9 +2653,10 @@ static inline void releaseStringValue(char* value, unsigned) { free(value); } namespace Json { -Exception::Exception(JSONCPP_STRING const& msg) : msg_(msg) {} +// BN: subclass +Exception::Exception(JSONCPP_STRING const& msg) : JSONCPP_EXCEPTION(msg) {} Exception::~Exception() JSONCPP_NOEXCEPT {} -char const* Exception::what() const JSONCPP_NOEXCEPT { return msg_.c_str(); } +// BN: removed what() RuntimeError::RuntimeError(JSONCPP_STRING const& msg) : Exception(msg) {} LogicError::LogicError(JSONCPP_STRING const& msg) : Exception(msg) {} JSONCPP_NORETURN void throwRuntimeError(JSONCPP_STRING const& msg) { |
