23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
+
-
-
-
+
+
+
|
*
* @brief An exception indicating that the specified version of the format or
* protocol is not supported.
*/
@interface OFUnsupportedVersionException: OFException
{
OFString *_version;
OF_RESERVE_IVARS(OFUnsupportedVersionException, 4)
}
/**
* @brief The version which is unsupported.
*/
@property (readonly, nonatomic) OFString *version;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Creates a new, autoreleased unsupported version exception.
*
* @param version The version which is unsupported
* @return A new, autoreleased unsupported version exception
*/
+ (instancetype)exceptionWithVersion: (OFString *)version;
- (instancetype)init OF_UNAVAILABLE;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated unsupported protocol exception.
*
* @param version The version which is unsupported
* @return An initialized unsupported version exception
*/
- (instancetype)initWithVersion: (OFString *)version OF_DESIGNATED_INITIALIZER;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|