22OF_ASSUME_NONNULL_BEGIN
44@property (readonly, nonatomic)
size_t line;
53+ (instancetype)exceptionWithString: (nullable
OFString *)string
65- (instancetype)initWithString: (nullable
OFString *)string
66 line: (
size_t)line OF_DESIGNATED_INITIALIZER;
68- (instancetype)
init OF_UNAVAILABLE;
The base class for all exceptions in ObjFW.
Definition OFException.h:157
instancetype exception()
Creates a new, autoreleased exception.
Definition OFException.m:283
An exception indicating a JSON representation is invalid.
Definition OFInvalidJSONException.h:30
size_t line
The line in which parsing the JSON representation failed.
Definition OFInvalidJSONException.h:44
OFString * string
The string containing the invalid JSON representation.
Definition OFInvalidJSONException.h:39
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
A class for handling strings.
Definition OFString.h:143