File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434namespace Json {
3535
3636/* * Base class for all exceptions we throw.
37+ *
38+ * We use nothing but these internally. Of course, STL can throw others.
3739 */
3840class JSON_API Exception;
3941/* * Exceptions which the user cannot easily avoid.
4042 *
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
4246 */
4347class JSON_API RuntimeError;
44- /* * Exceptions throw by JSON_ASSERT/JSON_FAIL macros.
48+ /* * Exceptions thrown by JSON_ASSERT/JSON_FAIL macros.
4549 *
4650 * These are precondition-violations (user bugs) and internal errors (our bugs).
51+ *
52+ * \remark derived from Json::Exception
4753 */
4854class JSON_API LogicError;
4955
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);
5260
5361/* * \brief Type of the value held by a Value object.
5462 */
You can’t perform that action at this time.
0 commit comments