File tree 1 file changed +12
-4
lines changed 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 34
34
namespace Json {
35
35
36
36
/* * Base class for all exceptions we throw.
37
+ *
38
+ * We use nothing but these internally. Of course, STL can throw others.
37
39
*/
38
40
class JSON_API Exception;
39
41
/* * Exceptions which the user cannot easily avoid.
40
42
*
41
- * E.g. out-of-memory, stack-overflow, malicious input
43
+ * E.g. out-of-memory (when we use malloc), stack-overflow, malicious input
44
+ *
45
+ * \remark derived from Json::Exception
42
46
*/
43
47
class JSON_API RuntimeError;
44
- /* * Exceptions throw by JSON_ASSERT/JSON_FAIL macros.
48
+ /* * Exceptions thrown by JSON_ASSERT/JSON_FAIL macros.
45
49
*
46
50
* These are precondition-violations (user bugs) and internal errors (our bugs).
51
+ *
52
+ * \remark derived from Json::Exception
47
53
*/
48
54
class JSON_API LogicError;
49
55
50
- JSON_API void throwRuntimeError (std::string const & msg);
51
- JSON_API void throwLogicError (std::string const & msg);
56
+ // / used internally
57
+ void throwRuntimeError (std::string const & msg);
58
+ // / used internally
59
+ void throwLogicError (std::string const & msg);
52
60
53
61
/* * \brief Type of the value held by a Value object.
54
62
*/
You can’t perform that action at this time.
0 commit comments