ObjFW  Check-in [cc5923d6bb]

Overview
Comment:Add designated initializer to all exceptions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cc5923d6bb250b1f7d59ec113d8315c2edf3cc5fc9031ce032c9704c831ac0cc
User & Date: js on 2017-06-04 23:41:38
Other Links: manifest | tags
Context
2017-06-05
01:07
runtime: get_method(): Look in categories first check-in: e55ca11653 user: js tags: trunk
2017-06-04
23:41
Add designated initializer to all exceptions check-in: cc5923d6bb user: js tags: trunk
18:48
Treat MorphOS + ixemul as a separate platform check-in: c9621825fc user: js tags: trunk
Changes

Modified src/exceptions/OFAcceptFailedException.h from [c633b0648f] to [f3f5b9898b].

62
63
64
65
66
67
68
69

70
71
72
62
63
64
65
66
67
68

69
70
71
72







-
+



 * @brief Initializes an already allocated accept failed exception.
 *
 * @param socket The socket which could not accept a connection
 * @param errNo The errno for the error
 * @return An initialized accept failed exception
 */
- initWithSocket: (id)socket
	   errNo: (int)errNo;
	   errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFAddressTranslationFailedException.h from [254e69058d] to [5b1e721875].

44
45
46
47
48
49
50

51
52
53
54
55
56
57
58
59
60
61
62

63
64

65
66
67
68
44
45
46
47
48
49
50
51
52
53

54
55
56
57
58
59
60
61
62
63
64

65

66
67
68







+


-









+

-
+
-



 * @brief Creates a new, autoreleased address translation failed exception.
 *
 * @param host The host for which translation was requested
 * @return A new, autoreleased address translation failed exception
 */
+ (instancetype)exceptionWithHost: (nullable OFString *)host;

+ (instancetype)exceptionWithError: (int)error;
+ (instancetype)exceptionWithHost: (nullable OFString *)host
			    error: (int)error;
+ (instancetype)exceptionWithError: (int)error;

/*!
 * @brief Initializes an already allocated address translation failed exception.
 *
 * @param host The host for which translation was requested
 * @return An initialized address translation failed exception
 */
- initWithHost: (nullable OFString *)host;

- (instancetype)initWithError: (int)error;
- (instancetype)initWithHost: (nullable OFString *)host
		       error: (int)error;
		       error: (int)error OF_DESIGNATED_INITIALIZER;
- (instancetype)initWithError: (int)error;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFAddressTranslationFailedException.m from [2a82ec8711] to [aad664818a].

46
47
48
49
50
51
52





53
54
55
56
57
58
59
60
61

62
63


64
65
66
67
68
69



70
71
72
73
74
75
76
77





78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

66
67

68
69
70
71
72
73


74
75
76








77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96









97
98
99
100
101
102
103







+
+
+
+
+








-
+

-
+
+




-
-
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+















-
-
-
-
-
-
-
-
-







}
#endif

+ (instancetype)exceptionWithHost: (OFString *)host
{
	return [[[self alloc] initWithHost: host] autorelease];
}

+ (instancetype)exceptionWithError: (int)error
{
	return [[[self alloc] initWithError: error] autorelease];
}

+ (instancetype)exceptionWithHost: (OFString *)host
			    error: (int)error
{
	return [[[self alloc] initWithHost: host
				     error: error] autorelease];
}

+ (instancetype)exceptionWithError: (int)error
- init
{
	return [[[self alloc] initWithError: error] autorelease];
	return [self initWithHost: nil
			    error: 0];
}

- initWithHost: (OFString *)host
{
	self = [super init];

	return [self initWithHost: host
			    error: 0];
}
	@try {
		_host = [host copy];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;

- (instancetype)initWithError: (int)error
{
	return [self initWithHost: nil
			    error: error];
}

- (instancetype)initWithHost: (OFString *)host
		       error: (int)error
{
	self = [super init];

	@try {
		_host = [host copy];
		_error = error;
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- (instancetype)initWithError: (int)error
{
	self = [super init];

	_error = error;

	return self;
}

- (void)dealloc
{
	[_host release];

Modified src/exceptions/OFAlreadyConnectedException.h from [394c47d4b8] to [2c13417f6e].

49
50
51
52
53
54
55
56

57
58
59
49
50
51
52
53
54
55

56
57
58
59







-
+




/*!
 * @brief Initializes an already allocated already connected exception.
 *
 * @param socket The socket which is already connected
 * @return An initialized already connected exception
 */
- initWithSocket: (nullable id)socket;
- initWithSocket: (nullable id)socket OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFAlreadyConnectedException.m from [e64bcd1baf] to [2c5cb8ffaf].

22
23
24
25
26
27
28





29
30
31
32
33
34
35
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40







+
+
+
+
+







@implementation OFAlreadyConnectedException
@synthesize socket = _socket;

+ (instancetype)exceptionWithSocket: (id)socket
{
	return [[[self alloc] initWithSocket: socket] autorelease];
}

- init
{
	return [self initWithSocket: nil];
}

- initWithSocket: (id)socket
{
	self = [super init];

	_socket = [socket retain];

Modified src/exceptions/OFBindFailedException.h from [3582fff9a7] to [abb5a72bf9].

82
83
84
85
86
87
88
89

90
91
92
82
83
84
85
86
87
88

89
90
91
92







-
+



 * @param socket The socket which could not be bound
 * @param errNo The errno of the error that occurred
 * @return An initialized bind failed exception
 */
- initWithHost: (OFString *)host
	  port: (uint16_t)port
	socket: (id)socket
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFChangeCurrentDirectoryPathFailedException.h from [96575fda4d] to [91d577cecc].

63
64
65
66
67
68
69
70

71
72
73
63
64
65
66
67
68
69

70
71
72
73







-
+



 *
 * @param path The path of the directory to which the current path could not be
 *	       changed
 * @param errNo The errno of the error that occurred
 * @return An initialized change current directory path failed exception
 */
- initWithPath: (OFString *)path
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFChangeOwnerFailedException.h from [28080b3b24] to [a7274cde75].

76
77
78
79
80
81
82
83

84
85
86
76
77
78
79
80
81
82

83
84
85
86







-
+



 * @param group The new group for the item
 * @param errNo The errno of the error that occurred
 * @return An initialized change owner failed exception
 */
- initWithPath: (OFString *)path
	 owner: (nullable OFString *)owner
	 group: (nullable OFString *)group
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFChangePermissionsFailedException.h from [007ef023b5] to [4201269912].

70
71
72
73
74
75
76
77

78
79
80
70
71
72
73
74
75
76

77
78
79
80







-
+



 * @param path The path of the item
 * @param permissions The new permissions for the item
 * @param errNo The errno of the error that occurred
 * @return An initialized change permissions failed exception
 */
- initWithPath: (OFString *)path
   permissions: (uint16_t)permissions
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFConditionBroadcastFailedException.h from [bec42f7089] to [c6d8b7a920].

51
52
53
54
55
56
57
58


59
60
61
51
52
53
54
55
56
57

58
59
60
61
62







-
+
+




/*!
 * @brief Initializes an already allocated condition broadcast failed exception.
 *
 * @param condition The condition which could not be broadcasted
 * @return An initialized condition broadcast failed exception
 */
- initWithCondition: (nullable OFCondition *)condition;
- initWithCondition: (nullable OFCondition *)condition
    OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFConditionBroadcastFailedException.m from [b1afbaa1c2] to [fe181a3605].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@implementation OFConditionBroadcastFailedException
@synthesize condition = _condition;

+ (instancetype)exceptionWithCondition: (OFCondition *)condition
{
	return [[[self alloc] initWithCondition: condition] autorelease];
}

- init
{
	return [self initWithCondition: nil];
}

- initWithCondition: (OFCondition *)condition
{
	self = [super init];

	_condition = [condition retain];

Modified src/exceptions/OFConditionSignalFailedException.h from [98ff55faa5] to [2a40e271f6].

51
52
53
54
55
56
57
58


59
60
61
51
52
53
54
55
56
57

58
59
60
61
62







-
+
+




/*!
 * @brief Initializes an already allocated condition signal failed exception.
 *
 * @param condition The condition which could not be signaled
 * @return An initialized condition signal failed exception
 */
- initWithCondition: (nullable OFCondition *)condition;
- initWithCondition: (nullable OFCondition *)condition
    OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFConditionSignalFailedException.m from [f8777a8229] to [52c03f4667].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@implementation OFConditionSignalFailedException
@synthesize condition = _condition;

+ (instancetype)exceptionWithCondition: (OFCondition *)condition
{
	return [[[self alloc] initWithCondition: condition] autorelease];
}

- init
{
	return [self initWithCondition: nil];
}

- initWithCondition: (OFCondition *)condition
{
	self = [super init];

	_condition = [condition retain];

Modified src/exceptions/OFConditionStillWaitingException.h from [8ebf47ac72] to [e274ecefc5].

52
53
54
55
56
57
58
59


60
61
62
52
53
54
55
56
57
58

59
60
61
62
63







-
+
+




/*!
 * @brief Initializes an already allocated condition still waiting exception.
 *
 * @param condition The condition for which is still being waited
 * @return An initialized condition still waiting exception
 */
- initWithCondition: (nullable OFCondition *)condition;
- initWithCondition: (nullable OFCondition *)condition
    OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFConditionStillWaitingException.m from [ec957ebffb] to [bf32de4933].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@implementation OFConditionStillWaitingException
@synthesize condition = _condition;

+ (instancetype)exceptionWithCondition: (OFCondition *)condition
{
	return [[[self alloc] initWithCondition: condition] autorelease];
}

- init
{
	return [self initWithCondition: nil];
}

- initWithCondition: (OFCondition *)condition
{
	self = [super init];

	_condition = [condition retain];

Modified src/exceptions/OFConditionWaitFailedException.h from [09e764d0e9] to [18e49a2572].

51
52
53
54
55
56
57
58


59
60
61
51
52
53
54
55
56
57

58
59
60
61
62







-
+
+




/*!
 * @brief Initializes an already allocated condition wait failed exception.
 *
 * @param condition The condition for which could not be waited
 * @return An initialized condition wait failed exception
 */
- initWithCondition: (nullable OFCondition *)condition;
- initWithCondition: (nullable OFCondition *)condition
    OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFConditionWaitFailedException.m from [d191ac48bf] to [6f1e6cd9f4].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@implementation OFConditionWaitFailedException
@synthesize condition = _condition;

+ (instancetype)exceptionWithCondition: (OFCondition *)condition
{
	return [[[self alloc] initWithCondition: condition] autorelease];
}

- init
{
	return [self initWithCondition: nil];
}

- initWithCondition: (OFCondition *)condition
{
	self = [super init];

	_condition = [condition retain];

Modified src/exceptions/OFConnectionFailedException.h from [1f7fe5d883] to [db737cf790].

106
107
108
109
110
111
112
113

114
115
116
106
107
108
109
110
111
112

113
114
115
116







-
+



 * @param socket The socket which could not connect
 * @param errNo The errno of the error that occurred
 * @return An initialized connection failed exception
 */
- initWithHost: (OFString *)host
	  port: (uint16_t)port
	socket: (id)socket
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFConnectionFailedException.m from [362d0afa20] to [58a22b0050].

54
55
56
57
58
59
60
61
62


63
64
65

66
67
68
69
70
71

72
73
74
75
76
77
78
79
54
55
56
57
58
59
60


61
62



63






64

65
66
67
68
69
70
71







-
-
+
+
-
-
-
+
-
-
-
-
-
-
+
-







	OF_INVALID_INIT_METHOD
}

- initWithHost: (OFString *)host
	  port: (uint16_t)port
	socket: (id)socket
{
	self = [super init];

	return [self initWithHost: host
			     port: port
	@try {
		_host = [host copy];
		_socket = [socket retain];
			   socket: socket
		_port = port;
	} @catch (id e) {
		[self release];
		@throw e;
	}

			    errNo: 0];
	return self;
}

- initWithHost: (OFString *)host
	  port: (uint16_t)port
	socket: (id)socket
	 errNo: (int)errNo
{

Modified src/exceptions/OFCopyItemFailedException.h from [3ba8604826] to [686e99d584].

67
68
69
70
71
72
73
74

75
76
77
67
68
69
70
71
72
73

74
75
76
77







-
+



 * @param sourcePath The original path
 * @param destinationPath The new path
 * @param errNo The errno of the error that occurred
 * @return An initialized copy item failed exception
 */
- initWithSourcePath: (OFString *)sourcePath
     destinationPath: (OFString *)destinationPath
	       errNo: (int)errNo;
	       errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFCreateDirectoryFailedException.h from [44563be7f3] to [f29603b825].

61
62
63
64
65
66
67
68

69
70
71
61
62
63
64
65
66
67

68
69
70
71







-
+



 *
 * @param path A string with the path of the directory which could not be
 *	       created
 * @param errNo The errno of the error that occurred
 * @return An initialized create directory failed exception
 */
- initWithPath: (OFString *)path
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFCreateSymbolicLinkFailedException.h from [1bdb6bb6d4] to [6b7c04ec31].

90
91
92
93
94
95
96
97

98
99
100
90
91
92
93
94
95
96

97
98
99
100







-
+



 * @param sourcePath The source for the symbolic link
 * @param destinationPath The destination for the symbolic link
 * @param errNo The errno of the error that occurred
 * @return An initialized create symbolic link failed exception
 */
- initWithSourcePath: (OFString *)sourcePath
     destinationPath: (OFString *)destinationPath
	       errNo: (int)errNo;
	       errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFCreateSymbolicLinkFailedException.m from [d7ffabf569] to [cf0b1e7a4c].

48
49
50
51
52
53
54
55
56

57
58
59

60
61
62
63
64

65
66
67
68
69
70
71
72
48
49
50
51
52
53
54


55



56





57

58
59
60
61
62
63
64







-
-
+
-
-
-
+
-
-
-
-
-
+
-







{
	OF_INVALID_INIT_METHOD
}

- initWithSourcePath: (OFString *)sourcePath
     destinationPath: (OFString *)destinationPath
{
	self = [super init];

	return [self initWithSourcePath: sourcePath
	@try {
		_sourcePath = [sourcePath copy];
		_destinationPath = [destinationPath copy];
			destinationPath: destinationPath
	} @catch (id e) {
		[self release];
		@throw e;
	}

				  errNo: 0];
	return self;
}

- initWithSourcePath: (OFString *)sourcePath
     destinationPath: (OFString *)destinationPath
	       errNo: (int)errNo
{
	self = [super init];

Modified src/exceptions/OFEnumerationMutationException.h from [891d173b44] to [fed4c58df5].

50
51
52
53
54
55
56
57

58
59
60
50
51
52
53
54
55
56

57
58
59
60







-
+




/*!
 * @brief Initializes an already allocated enumeration mutation exception.
 *
 * @param object The object which was mutated during enumeration
 * @return An initialized enumeration mutation exception
 */
- initWithObject: (id)object;
- initWithObject: (id)object OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFGetOptionFailedException.h from [e79b2ff6e7] to [0308db8cf6].

60
61
62
63
64
65
66
67

68
69
70
60
61
62
63
64
65
66

67
68
69
70







-
+



 * @brief Initializes an already allocated get option failed exception.
 *
 * @param stream The stream for which the option could not be gotten
 * @param errNo The errno of the error that occurred
 * @return An initialized get option failed exception
 */
- initWithStream: (OFStream *)stream
	   errNo: (int)errNo;
	   errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFHTTPRequestFailedException.h from [47316bed07] to [d6872c389b].

66
67
68
69
70
71
72
73

74
75
76
66
67
68
69
70
71
72

73
74
75
76







-
+



 * @brief Initializes an already allocated HTTP request failed exception.
 *
 * @param request The HTTP request which failed
 * @param response The response for the failed HTTP request
 * @return A new HTTP request failed exception
 */
- initWithRequest: (OFHTTPRequest *)request
	 response: (OFHTTPResponse *)response;
	 response: (OFHTTPResponse *)response OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFHashAlreadyCalculatedException.h from [2ee596473f] to [c4a33a3e2f].

49
50
51
52
53
54
55
56

57
58
59
49
50
51
52
53
54
55

56
57
58
59







-
+




/*!
 * @brief Initializes an already allocated hash already calculated exception.
 *
 * @param object The hash which has already been calculated
 * @return An initialized hash already calculated exception
 */
- initWithObject: (id)object;
- initWithObject: (id)object OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFInitializationFailedException.h from [1e9473a74a] to [f78e956c14].

45
46
47
48
49
50
51
52

53
54
55
45
46
47
48
49
50
51

52
53
54
55







-
+




/*!
 * @brief Initializes an already allocated initialization failed exception.
 *
 * @param class_ The class for which initialization failed
 * @return An initialized initialization failed exception
 */
- initWithClass: (nullable Class)class_;
- initWithClass: (nullable Class)class_ OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFInitializationFailedException.m from [ba889780e2] to [a45044fb6a].

22
23
24
25
26
27
28





29
30
31
32
33
34
35
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40







+
+
+
+
+







@implementation OFInitializationFailedException
@synthesize inClass = _inClass;

+ (instancetype)exceptionWithClass: (Class)class
{
	return [[[self alloc] initWithClass: class] autorelease];
}

- init
{
	return [self initWithClass: Nil];
}

- initWithClass: (Class)class
{
	self = [super init];

	_inClass = class;

Modified src/exceptions/OFInvalidJSONException.h from [a8c0d937c1] to [0ac6dc1b4d].

58
59
60
61
62
63
64
65

66
67
68
58
59
60
61
62
63
64

65
66
67
68







-
+



 * @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
 */
- initWithString: (nullable OFString *)string
	    line: (size_t)line;
	    line: (size_t)line OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFLinkFailedException.h from [88dd7ed2e3] to [27038c4511].

87
88
89
90
91
92
93
94

95
96
97
87
88
89
90
91
92
93

94
95
96
97







-
+



 * @param sourcePath The source for the link
 * @param destinationPath The destination for the link
 * @param errNo The errno of the error that occurred
 * @return An initialized link failed exception
 */
- initWithSourcePath: (OFString *)sourcePath
     destinationPath: (OFString *)destinationPath
	       errNo: (int)errNo;
	       errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFLinkFailedException.m from [d6a8b9409e] to [ced71e0c8a].

48
49
50
51
52
53
54
55
56

57
58
59

60
61
62
63
64

65
66
67
68
69
70
71
72
48
49
50
51
52
53
54


55



56





57

58
59
60
61
62
63
64







-
-
+
-
-
-
+
-
-
-
-
-
+
-







{
	OF_INVALID_INIT_METHOD
}

- initWithSourcePath: (OFString *)sourcePath
     destinationPath: (OFString *)destinationPath
{
	self = [super init];

	return [self initWithSourcePath: sourcePath
	@try {
		_sourcePath = [sourcePath copy];
		_destinationPath = [destinationPath copy];
			destinationPath: destinationPath
	} @catch (id e) {
		[self release];
		@throw e;
	}

				  errNo: 0];
	return self;
}

- initWithSourcePath: (OFString *)sourcePath
     destinationPath: (OFString *)destinationPath
	       errNo: (int)errNo
{
	self = [super init];

Modified src/exceptions/OFListenFailedException.h from [fa47660530] to [69aa18b2cb].

71
72
73
74
75
76
77
78

79
80
81
71
72
73
74
75
76
77

78
79
80
81







-
+



 * @param socket The socket which failed to listen
 * @param backLog The requested size of the back log
 * @param errNo The errno of the error that occurred
 * @return An initialized listen failed exception
 */
- initWithSocket: (id)socket
	 backLog: (int)backLog
	   errNo: (int)errNo;
	   errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFLockFailedException.h from [6569cc0a3f] to [3ccea224dd].

45
46
47
48
49
50
51
52

53
54
55
45
46
47
48
49
50
51

52
53
54
55







-
+




/*!
 * @brief Initializes an already allocated lock failed exception.
 *
 * @param lock The lock which could not be locked
 * @return An initialized lock failed exception
 */
- initWithLock: (nullable id <OFLocking>)lock;
- initWithLock: (nullable id <OFLocking>)lock OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFLockFailedException.m from [cdfa88a638] to [88a51a548f].

22
23
24
25
26
27
28





29
30
31
32
33
34
35
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40







+
+
+
+
+







@implementation OFLockFailedException
@synthesize lock = _lock;

+ (instancetype)exceptionWithLock: (id <OFLocking>)lock
{
	return [[[self alloc] initWithLock: lock] autorelease];
}

- init
{
	return [self initWithLock: nil];
}

- initWithLock: (id <OFLocking>)lock
{
	self = [super init];

	_lock = [lock retain];

Modified src/exceptions/OFMalformedXMLException.h from [63ec37adb1] to [fd5549b5bc].

46
47
48
49
50
51
52
53

54
55
56
46
47
48
49
50
51
52

53
54
55
56







-
+




/*!
 * @brief Initializes an already allocated malformed XML exception.
 *
 * @param parser The parser which encountered malformed XML
 * @return An initialized malformed XML exception
 */
- initWithParser: (nullable OFXMLParser *)parser;
- initWithParser: (nullable OFXMLParser *)parser OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFMalformedXMLException.m from [d7fbc3fc45] to [388479cf87].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@implementation OFMalformedXMLException
@synthesize parser = _parser;

+ (instancetype)exceptionWithParser: (OFXMLParser *)parser
{
	return [[[self alloc] initWithParser: parser] autorelease];
}

- init
{
	return [self initWithParser: nil];
}

- initWithParser: (OFXMLParser *)parser
{
	self = [super init];

	_parser = [parser retain];

Modified src/exceptions/OFMemoryNotPartOfObjectException.h from [12cc3efa95] to [aaf3eabd13].

59
60
61
62
63
64
65
66

67
68
69
59
60
61
62
63
64
65

66
67
68
69







-
+



 * @brief Initializes an already allocated memory not part of object exception.
 *
 * @param pointer A pointer to the memory that is not part of the object
 * @param object The object which the memory is not part of
 * @return An initialized memory not part of object exception
 */
- initWithPointer: (void *)pointer
	   object: (id)object;
	   object: (id)object OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFMoveItemFailedException.h from [3fdafa72d1] to [f3aaa9b168].

67
68
69
70
71
72
73
74

75
76
77
67
68
69
70
71
72
73

74
75
76
77







-
+



 * @param sourcePath The original path
 * @param destinationPath The new path
 * @param errNo The errno of the error that occurred
 * @return An initialized move item failed exception
 */
- initWithSourcePath: (OFString *)sourcePath
     destinationPath: (OFString *)destinationPath
	       errNo: (int)errNo;
	       errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFNotImplementedException.h from [6af9ecca7d] to [c419382595].

59
60
61
62
63
64
65
66

67
68
69
59
60
61
62
63
64
65

66
67
68
69







-
+



 * @brief Initializes an already allocated not implemented exception.
 *
 * @param selector The selector which is not or not fully implemented
 * @param object The object which does not (fully) implement the selector
 * @return An initialized not implemented exception
 */
- initWithSelector: (SEL)selector
	    object: (id)object;
	    object: (id)object OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFNotOpenException.h from [45caf9c6d4] to [3a972e8265].

47
48
49
50
51
52
53
54

55
56
57
47
48
49
50
51
52
53

54
55
56
57







-
+




/*!
 * @brief Initializes an already allocated not open exception.
 *
 * @param object The object which is not open, connected or bound
 * @return An initialized not open exception
 */
- initWithObject: (id)object;
- initWithObject: (id)object OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFObserveFailedException.h from [9887d9256b] to [eb784e0d21].

60
61
62
63
64
65
66
67

68
69
70
60
61
62
63
64
65
66

67
68
69
70







-
+



 * @brief Initializes an already allocated observe failed exception.
 *
 * @param observer The observer which failed to observe
 * @param errNo The errno of the error that occurred
 * @return An initialized observe failed exception
 */
- initWithObserver: (OFKernelEventObserver *)observer
	     errNo: (int)errNo;
	     errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFOpenItemFailedException.h from [18f5ca0ccc] to [faec693cdb].

123
124
125
126
127
128
129
130

131
132
133
123
124
125
126
127
128
129

130
131
132
133







-
+



 * @param path A string with the path of the item which could not be opened
 * @param mode A string with the mode in which the item should have been opened
 * @param errNo The errno of the error that occurred
 * @return An initialized open item failed exception
 */
- initWithPath: (OFString *)path
	  mode: (nullable OFString *)mode
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFOpenItemFailedException.m from [3430fe78c1] to [850e9c668c].

58
59
60
61
62
63
64
65
66


67
68
69
70
71
72
73

74
75
76
77
78
79
80
81

82
83
84

85
86
87
88
89

90
91
92
93
94
95
96
97


98
99
100

101
102
103
104
105
106
107
108
109
110
111
112
113
58
59
60
61
62
63
64


65
66







67

68
69
70
71
72


73



74





75

76
77
78
79
80


81
82



83






84
85
86
87
88
89
90







-
-
+
+
-
-
-
-
-
-
-
+
-





-
-
+
-
-
-
+
-
-
-
-
-
+
-





-
-
+
+
-
-
-
+
-
-
-
-
-
-







- init
{
	OF_INVALID_INIT_METHOD
}

- initWithPath: (OFString *)path
{
	self = [super init];

	return [self initWithPath: path
			     mode: nil
	@try {
		_path = [path copy];
	} @catch (id e) {
		[self release];
		@throw e;
	}

			    errNo: 0];
	return self;
}

- initWithPath: (OFString *)path
	  mode: (OFString *)mode
{
	self = [super init];

	return [self initWithPath: path
	@try {
		_path  = [path copy];
		_mode  = [mode copy];
			     mode: mode
	} @catch (id e) {
		[self release];
		@throw e;
	}

			    errNo: 0];
	return self;
}

- initWithPath: (OFString *)path
	 errNo: (int)errNo
{
	self = [super init];

	return [self initWithPath: path
			     mode: nil
	@try {
		_path  = [path copy];
		_errNo = errNo;
			    errNo: errNo];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- initWithPath: (OFString *)path
	  mode: (OFString *)mode
	 errNo: (int)errNo
{
	self = [super init];

Modified src/exceptions/OFOutOfMemoryException.h from [38bafbd401] to [04b0c3927c].

44
45
46
47
48
49
50
51

52
53
54
44
45
46
47
48
49
50

51
52
53
54







-
+




/*!
 * @brief Initializes an already allocated no memory exception.
 *
 * @param requestedSize The size of the memory that could not be allocated
 * @return An initialized no memory exception
 */
- initWithRequestedSize: (size_t)requestedSize;
- initWithRequestedSize: (size_t)requestedSize OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFOutOfMemoryException.m from [7cb2b989ab] to [3aa81f3781].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@synthesize requestedSize = _requestedSize;

+ (instancetype)exceptionWithRequestedSize: (size_t)requestedSize
{
	return [[[self alloc]
	    initWithRequestedSize: requestedSize] autorelease];
}

- init
{
	return [self initWithRequestedSize: 0];
}

- initWithRequestedSize: (size_t)requestedSize
{
	self = [super init];

	_requestedSize = requestedSize;

Modified src/exceptions/OFReadOrWriteFailedException.h from [eb2334224b] to [3fcd66685f].

93
94
95
96
97
98
99
100

101
102
103
93
94
95
96
97
98
99

100
101
102
103







-
+



 * @param requestedLength The requested length of the data that could not be
 *			  read / written
 * @param errNo The errno of the error that occurred
 * @return A new open file failed exception
 */
-  initWithObject: (id)object
  requestedLength: (size_t)requestedLength
	    errNo: (int)errNo;
	    errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFReadOrWriteFailedException.m from [dcc2fa8f51] to [64f51c8ea5].

48
49
50
51
52
53
54
55
56

57
58
59


60
61
62
63
64
65
66
67
48
49
50
51
52
53
54


55



56
57

58
59
60
61
62
63
64







-
-
+
-
-
-
+
+
-







{
	OF_INVALID_INIT_METHOD
}

-  initWithObject: (id)object
  requestedLength: (size_t)requestedLength
{
	self = [super init];

	return [self initWithObject: object
	_object = [object retain];
	_requestedLength = requestedLength;

		    requestedLength: requestedLength
			      errNo: 0];
	return self;
}

-  initWithObject: (id)object
  requestedLength: (size_t)requestedLength
	    errNo: (int)errNo
{
	self = [super init];

Modified src/exceptions/OFRemoveItemFailedException.h from [112e6664c1] to [8e15a38aea].

58
59
60
61
62
63
64
65

66
67
68
58
59
60
61
62
63
64

65
66
67
68







-
+



 * @brief Initializes an already allocated remove failed exception.
 *
 * @param path The path of the item which could not be removed
 * @param errNo The errno of the error that occurred
 * @return An initialized remove item failed exception
 */
- initWithPath: (OFString *)path
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFSandboxActivationFailedException.h from [b1df1eba39] to [d372fc8333].

61
62
63
64
65
66
67
68

69
70
71
61
62
63
64
65
66
67

68
69
70
71







-
+



 * @brief Initializes an already allocated sandboxing failed exception.
 *
 * @param sandbox The sandbox which could not be activated
 * @param errNo The errno of the error that occurred
 * @return An initialized sandboxing failed exception
 */
- initWithSandbox: (OFSandbox *)sandbox
	    errNo: (int)errNo;
	    errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFSeekFailedException.h from [a442beb9d6] to [a5d3e23d40].

102
103
104
105
106
107
108
109

110
111
112
102
103
104
105
106
107
108

109
110
111
112







-
+



 * @param whence To what the offset is relative
 * @param errNo The errno of the error that occurred
 * @return An initialized seek failed exception
 */
- initWithStream: (OFSeekableStream *)stream
	  offset: (of_offset_t)offset
	  whence: (int)whence
	   errNo: (int)errNo;
	   errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFSeekFailedException.m from [aaa4670827] to [001a049def].

54
55
56
57
58
59
60
61
62

63
64
65
66



67
68
69
70
71
72
73
74
54
55
56
57
58
59
60


61




62
63
64

65
66
67
68
69
70
71







-
-
+
-
-
-
-
+
+
+
-







	OF_INVALID_INIT_METHOD
}

- initWithStream: (OFSeekableStream *)stream
	  offset: (of_offset_t)offset
	  whence: (int)whence
{
	self = [super init];

	return [self initWithStream: stream
	_stream = [stream retain];
	_offset = offset;
	_whence = whence;

			     offset: offset
			     whence: whence
			      errNo: 0];
	return self;
}

- initWithStream: (OFSeekableStream *)stream
	  offset: (of_offset_t)offset
	  whence: (int)whence
	   errNo: (int)errNo
{

Modified src/exceptions/OFSetOptionFailedException.h from [de32f0a06b] to [017f4d3212].

60
61
62
63
64
65
66
67

68
69
70
60
61
62
63
64
65
66

67
68
69
70







-
+



 * @brief Initializes an already allocated set option failed exception.
 *
 * @param stream The stream for which the option could not be set
 * @param errNo The errno of the error that occurred
 * @return An initialized set option failed exception
 */
- initWithStream: (OFStream *)stream
	   errNo: (int)errNo;
	   errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFStatItemFailedException.h from [abe62eddf9] to [a0a4efff1c].

78
79
80
81
82
83
84
85

86
87
88
78
79
80
81
82
83
84

85
86
87
88







-
+



 *
 * @param path A string with the path of the item whose status could not be
 *	       retrieved
 * @param errNo The errno of the error that occurred
 * @return An initialized stat item failed exception
 */
- initWithPath: (OFString *)path
	 errNo: (int)errNo;
	 errNo: (int)errNo OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFStatItemFailedException.m from [e7d85ac692] to [947a3cd491].

42
43
44
45
46
47
48
49
50

51
52
53
54
55
56
57

58
59
60
61
62
63
64
65
42
43
44
45
46
47
48


49







50

51
52
53
54
55
56
57







-
-
+
-
-
-
-
-
-
-
+
-







- init
{
	OF_INVALID_INIT_METHOD
}

- initWithPath: (OFString *)path
{
	self = [super init];

	return [self initWithPath: path
	@try {
		_path = [path copy];
	} @catch (id e) {
		[self release];
		@throw e;
	}

			    errNo: 0];
	return self;
}

- initWithPath: (OFString *)path
	 errNo: (int)errNo
{
	self = [super init];

Modified src/exceptions/OFStillLockedException.h from [a95128b6c6] to [b8061dbf08].

45
46
47
48
49
50
51
52

53
54
55
45
46
47
48
49
50
51

52
53
54
55







-
+




/*!
 * @brief Initializes an already allocated still locked exception.
 *
 * @param lock The lock which is still locked
 * @return An initialized still locked exception
 */
- initWithLock: (nullable id <OFLocking>)lock;
- initWithLock: (nullable id <OFLocking>)lock OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFStillLockedException.m from [af438cc6c1] to [2fe383e098].

22
23
24
25
26
27
28





29
30
31
32
33
34
35
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40







+
+
+
+
+







@implementation OFStillLockedException
@synthesize lock = _lock;

+ (instancetype)exceptionWithLock: (id <OFLocking>)lock
{
	return [[[self alloc] initWithLock: lock] autorelease];
}

- init
{
	return [self initWithLock: nil];
}

- initWithLock: (id <OFLocking>)lock
{
	self = [super init];

	_lock = [lock retain];

Modified src/exceptions/OFThreadJoinFailedException.h from [2bb131ccb4] to [ee910d5685].

50
51
52
53
54
55
56
57

58
59
60
50
51
52
53
54
55
56

57
58
59
60







-
+




/*!
 * @brief Initializes an already allocated thread join failed exception.
 *
 * @param thread The thread which could not be joined
 * @return An initialized thread join failed exception
 */
- initWithThread: (nullable OFThread *)thread;
- initWithThread: (nullable OFThread *)thread OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFThreadJoinFailedException.m from [f8db38d484] to [52418b0509].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@implementation OFThreadJoinFailedException
@synthesize thread = _thread;

+ (instancetype)exceptionWithThread: (OFThread *)thread
{
	return [[[self alloc] initWithThread: thread] autorelease];
}

- init
{
	return [self initWithThread: nil];
}

- initWithThread: (OFThread *)thread
{
	self = [super init];

	_thread = [thread retain];

Modified src/exceptions/OFThreadStartFailedException.h from [df2070febe] to [5b62c6914b].

50
51
52
53
54
55
56
57

58
59
60
50
51
52
53
54
55
56

57
58
59
60







-
+




/*!
 * @brief Initializes an already allocated thread start failed exception.
 *
 * @param thread The thread which could not be started
 * @return An initialized thread start failed exception
 */
- initWithThread: (nullable OFThread *)thread;
- initWithThread: (nullable OFThread *)thread OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFThreadStartFailedException.m from [a98d20539d] to [15916f07c7].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@implementation OFThreadStartFailedException
@synthesize thread = _thread;

+ (instancetype)exceptionWithThread: (OFThread *)thread
{
	return [[[self alloc] initWithThread: thread] autorelease];
}

- init
{
	return [self initWithThread: nil];
}

- initWithThread: (OFThread *)thread
{
	self = [super init];

	_thread = [thread retain];

Modified src/exceptions/OFThreadStillRunningException.h from [d232a7942a] to [f704902e73].

50
51
52
53
54
55
56
57

58
59
60
50
51
52
53
54
55
56

57
58
59
60







-
+




/*!
 * @brief Initializes an already allocated thread still running exception.
 *
 * @param thread The thread which is still running
 * @return An initialized thread still running exception
 */
- initWithThread: (nullable OFThread *)thread;
- initWithThread: (nullable OFThread *)thread OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFThreadStillRunningException.m from [c688f113b8] to [72ea85d26c].

23
24
25
26
27
28
29





30
31
32
33
34
35
36
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41







+
+
+
+
+







@implementation OFThreadStillRunningException
@synthesize thread = _thread;

+ (instancetype)exceptionWithThread: (OFThread *)thread
{
	return [[[self alloc] initWithThread: thread] autorelease];
}

- init
{
	return [self initWithThread: nil];
}

- initWithThread: (OFThread *)thread
{
	self = [super init];

	_thread = [thread retain];

Modified src/exceptions/OFUnboundNamespaceException.h from [189fcf2d53] to [0e5c5a1bea].

64
65
66
67
68
69
70
71

72
73
74
64
65
66
67
68
69
70

71
72
73
74







-
+



 * @brief Initializes an already allocated unbound namespace exception.
 *
 * @param namespace_ The namespace which is unbound
 * @param element The element in which the namespace was not bound
 * @return An initialized unbound namespace exception
 */
- initWithNamespace: (OFString *)namespace_
	    element: (OFXMLElement *)element;
	    element: (OFXMLElement *)element OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFUnboundPrefixException.h from [86ff7f38fd] to [5e8a642c6a].

60
61
62
63
64
65
66
67

68
69
70
60
61
62
63
64
65
66

67
68
69
70







-
+



 * @brief Initializes an already allocated unbound prefix exception.
 *
 * @param prefix The prefix which is unbound
 * @param parser The parser which encountered the unbound prefix
 * @return An initialized unbound prefix exception
 */
- initWithPrefix: (OFString *)prefix
	  parser: (OFXMLParser *)parser;
	  parser: (OFXMLParser *)parser OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFUndefinedKeyException.h from [9c2b705ff9] to [8262adf7cd].

66
67
68
69
70
71
72
73

74
75
76
77
78
79
80
66
67
68
69
70
71
72

73
74
75
76
77
78
79
80







-
+







 * @param key The key which is undefined
 * @param value The value for the undefined key
 *
 * @return A new, autoreleased undefined key exception
 */
+ (instancetype)exceptionWithObject: (id)object
				key: (OFString *)key
			      value: (id)value;
			      value: (nullable id)value;

- init OF_UNAVAILABLE;

/*!
 * @brief Initializes an already allocated undefined key exception.
 *
 * @param object The object on which the key is undefined
92
93
94
95
96
97
98
99

100
101
102
92
93
94
95
96
97
98

99
100
101
102







-
+



 * @param key The key which is undefined
 * @param value The value for the undefined key
 *
 * @return An initialized undefined key exception
 */
- initWithObject: (id)object
	     key: (OFString *)key
	   value: (id)value;
	   value: (nullable id)value OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFUndefinedKeyException.m from [d791f70d8c] to [f82b50e599].

47
48
49
50
51
52
53
54
55

56
57
58

59
60
61
62
63

64
65
66
67
68
69
70
71
47
48
49
50
51
52
53


54



55





56

57
58
59
60
61
62
63







-
-
+
-
-
-
+
-
-
-
-
-
+
-







{
	OF_INVALID_INIT_METHOD
}

- initWithObject: (id)object
	     key: (OFString *)key
{
	self = [super init];

	return [self initWithObject: object
	@try {
		_object = [object retain];
		_key = [key copy];
				key: key
	} @catch (id e) {
		[self release];
		@throw e;
	}

			      value: nil];
	return self;
}

- initWithObject: (id)object
	     key: (OFString *)key
	   value: (id)value
{
	self = [super init];

Modified src/exceptions/OFUnknownXMLEntityException.h from [f1e9896ef6] to [ed0a6b7b38].

39
40
41
42
43
44
45


46
47
48
49
50
51
52

53
54
55
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

54
55
56
57







+
+






-
+



 * @brief Creates a new, autoreleased unknown XML entity exception.
 *
 * @param entityName The name of the unknown XML entity
 * @return A new, autoreleased unknown XML entity exception
 */
+ (instancetype)exceptionWithEntityName: (OFString *)entityName;

- init OF_UNAVAILABLE;

/*!
 * @brief Initializes an already allocated unknown XML entity exception.
 *
 * @param entityName The name of the unknown XML entity
 * @return An initialized unknown XML entity exception
 */
- initWithEntityName: (OFString *)entityName;
- initWithEntityName: (OFString *)entityName OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFUnknownXMLEntityException.m from [0c33db3e95] to [107f333674].

22
23
24
25
26
27
28





29
30
31
32
33
34
35
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40







+
+
+
+
+







@implementation OFUnknownXMLEntityException
@synthesize entityName = _entityName;

+ (instancetype)exceptionWithEntityName: (OFString *)entityName
{
	return [[[self alloc] initWithEntityName: entityName] autorelease];
}

- init
{
	OF_INVALID_INIT_METHOD
}

- initWithEntityName: (OFString *)entityName
{
	self = [super init];

	@try {
		_entityName = [entityName copy];

Modified src/exceptions/OFUnlockFailedException.h from [322f56e8eb] to [52fd9fc107].

45
46
47
48
49
50
51
52

53
54
55
45
46
47
48
49
50
51

52
53
54
55







-
+




/*!
 * @brief Initializes an already allocated unlock failed exception.
 *
 * @param lock The lock which could not be unlocked
 * @return An initialized unlock failed exception
 */
- initWithLock: (nullable id <OFLocking>)lock;
- initWithLock: (nullable id <OFLocking>)lock OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFUnlockFailedException.m from [ebd625dff3] to [2f9ac905e0].

22
23
24
25
26
27
28





29
30
31
32
33
34
35
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40







+
+
+
+
+







@implementation OFUnlockFailedException
@synthesize lock = _lock;

+ (instancetype)exceptionWithLock: (id <OFLocking>)lock
{
	return [[[self alloc] initWithLock: lock] autorelease];
}

- init
{
	return [self initWithLock: nil];
}

- initWithLock: (id <OFLocking>)lock
{
	self = [super init];

	_lock = [lock retain];

Modified src/exceptions/OFUnsupportedProtocolException.h from [18d55cdaec] to [3933dc08dd].

52
53
54
55
56
57
58
59

60
61
62
52
53
54
55
56
57
58

59
60
61
62







-
+




/*!
 * @brief Initializes an already allocated unsupported protocol exception
 *
 * @param URL The URL whose protocol is unsupported
 * @return An initialized unsupported protocol exception
 */
- initWithURL: (OFURL*)URL;
- initWithURL: (OFURL*)URL OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END

Modified src/exceptions/OFUnsupportedVersionException.h from [13a70ec096] to [cc57329772].

49
50
51
52
53
54
55
56

57
58
59
49
50
51
52
53
54
55

56
57
58
59







-
+




/*!
 * @brief Initializes an already allocated unsupported protocol exception.
 *
 * @param version The version which is unsupported
 * @return An initialized unsupported version exception
 */
- initWithVersion: (OFString *)version;
- initWithVersion: (OFString *)version OF_DESIGNATED_INITIALIZER;
@end

OF_ASSUME_NONNULL_END