mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-03 07:52:28 +02:00
comments
This commit is contained in:
parent
0d33cb3639
commit
4e30c4fcdb
@ -34,21 +34,29 @@
|
|||||||
namespace Json {
|
namespace Json {
|
||||||
|
|
||||||
/** Base class for all exceptions we throw.
|
/** Base class for all exceptions we throw.
|
||||||
|
*
|
||||||
|
* We use nothing but these internally. Of course, STL can throw others.
|
||||||
*/
|
*/
|
||||||
class JSON_API Exception;
|
class JSON_API Exception;
|
||||||
/** Exceptions which the user cannot easily avoid.
|
/** Exceptions which the user cannot easily avoid.
|
||||||
*
|
*
|
||||||
* E.g. out-of-memory, stack-overflow, malicious input
|
* E.g. out-of-memory (when we use malloc), stack-overflow, malicious input
|
||||||
|
*
|
||||||
|
* \remark derived from Json::Exception
|
||||||
*/
|
*/
|
||||||
class JSON_API RuntimeError;
|
class JSON_API RuntimeError;
|
||||||
/** Exceptions throw by JSON_ASSERT/JSON_FAIL macros.
|
/** Exceptions thrown by JSON_ASSERT/JSON_FAIL macros.
|
||||||
*
|
*
|
||||||
* These are precondition-violations (user bugs) and internal errors (our bugs).
|
* These are precondition-violations (user bugs) and internal errors (our bugs).
|
||||||
|
*
|
||||||
|
* \remark derived from Json::Exception
|
||||||
*/
|
*/
|
||||||
class JSON_API LogicError;
|
class JSON_API LogicError;
|
||||||
|
|
||||||
JSON_API void throwRuntimeError(std::string const& msg);
|
/// used internally
|
||||||
JSON_API void throwLogicError(std::string const& msg);
|
void throwRuntimeError(std::string const& msg);
|
||||||
|
/// used internally
|
||||||
|
void throwLogicError(std::string const& msg);
|
||||||
|
|
||||||
/** \brief Type of the value held by a Value object.
|
/** \brief Type of the value held by a Value object.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user