Skip to content

Commit 4e30c4f

Browse files
committed
comments
1 parent 0d33cb3 commit 4e30c4f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

include/json/value.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,29 @@
3434
namespace 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
*/
3840
class 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
*/
4347
class 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
*/
4854
class 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
*/

0 commit comments

Comments
 (0)