@@ -17,11 +17,11 @@ #import "OFException.h" OF_ASSUME_NONNULL_BEGIN -/*! +/** * @class OFInvalidJSONException \ * OFInvalidJSONException.h ObjFW/OFInvalidJSONException.h * * @brief An exception indicating a JSON representation is invalid. */ @@ -29,23 +29,23 @@ { OFString *_string; size_t _line; } -/*! +/** * @brief The string containing the invalid JSON representation. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *string; -/*! +/** * @brief The line in which parsing the JSON representation failed. */ @property (readonly, nonatomic) size_t line; + (instancetype)exception OF_UNAVAILABLE; -/*! +/** * @brief Creates a new, autoreleased invalid JSON exception. * * @param string The string containing the invalid JSON representation * @param line The line in which the parsing error was encountered * @return A new, autoreleased invalid JSON exception @@ -53,11 +53,11 @@ + (instancetype)exceptionWithString: (nullable OFString *)string line: (size_t)line; - (instancetype)init OF_UNAVAILABLE; -/*! +/** * @brief Initializes an already allocated invalid JSON exception. * * @param string The string containing the invalid JSON representation * @param line The line in which the parsing error was encountered * @return An initialized invalid JSON exception