16#import "OFException.h"
18OF_ASSUME_NONNULL_BEGIN
38@property (readonly, nonatomic)
id object;
43@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFString *
key;
48@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
id value;
58+ (instancetype)exceptionWithObject: (
id)object key: (
OFString *)key;
69+ (instancetype)exceptionWithObject: (
id)object
71 value: (nullable
id)value;
73+ (instancetype)exception OF_UNAVAILABLE;
83- (instancetype)initWithObject: (
id)object key: (
OFString *)key;
94- (instancetype)initWithObject: (
id)object
96 value: (nullable
id)value OF_DESIGNATED_INITIALIZER;
98- (instancetype)init OF_UNAVAILABLE;
The base class for all exceptions in ObjFW.
Definition OFException.h:151
A class for handling strings.
Definition OFString.h:135
An exception indicating that a key is undefined (e.g. for Key Value Coding).
Definition OFUndefinedKeyException.h:28
OFString * key
The key which is undefined.
Definition OFUndefinedKeyException.h:43