Overview
Context
Changes
Modified src/exceptions/OFChangeCurrentDirectoryPathFailedException.m
from [e479f99364]
to [35ec7fdb32].
︙ | | |
17
18
19
20
21
22
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
|
17
18
19
20
21
22
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
|
-
-
-
-
-
-
+
-
+
+
+
+
+
+
|
#import "OFChangeCurrentDirectoryPathFailedException.h"
#import "OFString.h"
@implementation OFChangeCurrentDirectoryPathFailedException
@synthesize path = _path, errNo = _errNo;
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithPath: (OFString *)path errNo: (int)errNo
{
return [[[self alloc] initWithPath: path errNo: errNo] autorelease];
}
- (instancetype)init
+ (instancetype)exception
{
OF_INVALID_INIT_METHOD
OF_UNRECOGNIZED_SELECTOR
}
- (instancetype)initWithPath: (OFString *)path errNo: (int)errNo
{
self = [super init];
@try {
_path = [path copy];
_errNo = errNo;
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (void)dealloc
{
[_path release];
[super dealloc];
}
|
︙ | | |
Modified src/exceptions/OFConnectionFailedException.h
from [9758698be0]
to [2687b6eb31].
︙ | | |
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
-
-
|
@property (readonly, nonatomic) id socket;
/**
* @brief The errno of the error that occurred.
*/
@property (readonly, nonatomic) int errNo;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Creates a new, autoreleased connection failed exception.
*
* @param host The host to which the connection failed
* @param port The port on the host to which the connection failed
* @param socket The socket which could not connect
* @param errNo The errno of the error that occurred
|
︙ | | |
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
-
+
|
* @param errNo The errno of the error that occurred
* @return A new, autoreleased connection failed exception
*/
+ (instancetype)exceptionWithPath: (OFString *)path
socket: (id)socket
errNo: (int)errNo;
- (instancetype)init OF_UNAVAILABLE;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated connection failed exception.
*
* @param host The host to which the connection failed
* @param port The port on the host to which the connection failed
* @param socket The socket which could not connect
|
︙ | | |
158
159
160
161
162
163
164
165
166
167
|
156
157
158
159
160
161
162
163
164
165
166
167
|
+
+
|
* @param socket The socket which could not connect
* @param errNo The errno of the error that occurred
* @return An initialized connection failed exception
*/
- (instancetype)initWithPath: (OFString *)path
socket: (id)socket
errNo: (int)errNo;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|
Modified src/exceptions/OFConnectionFailedException.m
from [6f77903dfd]
to [1671ca3ac8].
︙ | | |
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
-
-
-
-
-
+
+
+
+
+
|
#import "OFConnectionFailedException.h"
#import "OFString.h"
@implementation OFConnectionFailedException
@synthesize host = _host, port = _port, network = _network, path = _path;
@synthesize socket = _socket, errNo = _errNo;
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithHost: (OFString *)host
port: (uint16_t)port
socket: (id)sock
errNo: (int)errNo
{
return [[[self alloc] initWithHost: host
port: port
socket: sock
errNo: errNo] autorelease];
}
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithNode: (unsigned char [IPX_NODE_LEN])node
network: (uint32_t)network
port: (uint16_t)port
socket: (id)sock
errNo: (int)errNo
{
|
︙ | | |
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
-
-
-
-
-
|
errNo: (int)errNo
{
return [[[self alloc] initWithPath: path
socket: sock
errNo: errNo] autorelease];
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithHost: (OFString *)host
port: (uint16_t)port
socket: (id)sock
errNo: (int)errNo
{
self = [super init];
|
︙ | | |
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
+
+
+
+
+
|
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (void)dealloc
{
[_host release];
[_path release];
[_socket release];
|
︙ | | |
Modified src/exceptions/OFGetCurrentDirectoryPathFailedException.m
from [d72c905408]
to [60672e8d84].
︙ | | |
17
18
19
20
21
22
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
|
17
18
19
20
21
22
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
|
-
-
-
-
-
-
+
-
+
+
+
+
+
+
|
#import "OFGetCurrentDirectoryPathFailedException.h"
#import "OFString.h"
@implementation OFGetCurrentDirectoryPathFailedException
@synthesize errNo = _errNo;
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithErrNo: (int)errNo
{
return [[[self alloc] initWithErrNo: errNo] autorelease];
}
- (instancetype)init
+ (instancetype)exception
{
OF_INVALID_INIT_METHOD
OF_UNRECOGNIZED_SELECTOR
}
- (instancetype)initWithErrNo: (int)errNo
{
self = [super init];
_errNo = errNo;
return self;
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (OFString *)description
{
return [OFString stringWithFormat:
@"Getting the current directory path failed: %@",
OFStrError(_errNo)];
}
@end
|
Modified src/exceptions/OFGetWindowsRegistryValueFailedException.h
from [4f2322992c]
to [733c657ffd].
︙ | | |
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
|
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
|
-
+
+
+
|
* @param status The status returned by RegGetValueEx()
* @return A new, autoreleased get Windows registry value failed exception
*/
+ (instancetype)exceptionWithRegistryKey: (OFWindowsRegistryKey *)registryKey
valueName: (nullable OFString *)valueName
status: (LSTATUS)status;
- (instancetype)init OF_UNAVAILABLE;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated get Windows registry value failed
* exception.
*
* @param registryKey The registry key on which getting the value at the sub
* key path failed
* @param valueName The name of the value which could not be retrieved
* @param status The status returned by RegGetValueEx()
* @return An initialized get Windows registry value failed exception
*/
- (instancetype)initWithRegistryKey: (OFWindowsRegistryKey *)registryKey
valueName: (nullable OFString *)valueName
status: (LSTATUS)status OF_DESIGNATED_INITIALIZER;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|
Modified src/exceptions/OFGetWindowsRegistryValueFailedException.m
from [da334a4e57]
to [57087b05b3].
︙ | | |
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
60
61
|
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
60
61
62
63
64
65
66
|
-
+
-
+
+
+
+
+
+
|
status: (LSTATUS)status
{
return [[[self alloc] initWithRegistryKey: registryKey
valueName: valueName
status: status] autorelease];
}
- (instancetype)init
+ (instancetype)exception
{
OF_INVALID_INIT_METHOD
OF_UNRECOGNIZED_SELECTOR
}
- (instancetype)initWithRegistryKey: (OFWindowsRegistryKey *)registryKey
valueName: (OFString *)valueName
status: (LSTATUS)status
{
self = [super init];
@try {
_registryKey = [registryKey retain];
_valueName = [valueName copy];
_status = status;
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (void)dealloc
{
[_registryKey release];
[_valueName release];
[super dealloc];
|
︙ | | |
Modified src/exceptions/OFLoadPluginFailedException.h
from [b46d478f30]
to [7c45470186].
︙ | | |
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
60
61
62
63
64
65
66
67
|
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
60
61
62
63
64
65
66
67
|
-
-
-
+
+
+
|
@property (readonly, nonatomic) OFString *path;
/**
* @brief The error why the plugin could not be loaded, as a string
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFString *error;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Creates a new, autoreleased load plugin failed exception.
*
* @param path The path of the plugin which could not be loaded
* @param error The error why the plugin could not be loaded, as a string
* @return A new, autoreleased load plugin failed exception
*/
+ (instancetype)exceptionWithPath: (OFString *)path
error: (nullable OFString *)error;
- (instancetype)init OF_UNAVAILABLE;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated load plugin failed exception.
*
* @param path The path of the plugin which could not be loaded
* @param error The error why the plugin could not be loaded, as a string
* @return An initialized load plugin failed exception
*/
- (instancetype)initWithPath: (OFString *)path
error: (nullable OFString *)error
OF_DESIGNATED_INITIALIZER;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|
Modified src/exceptions/OFLoadPluginFailedException.m
from [47fc9f6837]
to [73caeab9c3].
︙ | | |
17
18
19
20
21
22
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
|
17
18
19
20
21
22
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
|
-
-
-
-
-
-
+
-
+
+
+
+
+
+
|
#import "OFLoadPluginFailedException.h"
#import "OFString.h"
@implementation OFLoadPluginFailedException
@synthesize path = _path, error = _error;
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithPath: (OFString *)path error: (OFString *)error
{
return [[[self alloc] initWithPath: path error: error] autorelease];
}
- (instancetype)init
+ (instancetype)exception
{
OF_INVALID_INIT_METHOD
OF_UNRECOGNIZED_SELECTOR
}
- (instancetype)initWithPath: (OFString *)path error: (OFString *)error
{
self = [super init];
@try {
_path = [path copy];
_error = [error copy];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (void)dealloc
{
[_path release];
[_error release];
[super dealloc];
|
︙ | | |
Modified src/exceptions/OFOpenWindowsRegistryKeyFailedException.h
from [339dced1e5]
to [5fb8a73f7a].
︙ | | |
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
|
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
|
-
+
+
+
|
+ (instancetype)
exceptionWithRegistryKey: (OFWindowsRegistryKey *)registryKey
path: (OFString *)path
options: (DWORD)options
securityAndAccessRights: (REGSAM)securityAndAccessRights
status: (LSTATUS)status;
- (instancetype)init OF_UNAVAILABLE;
+ (instancetype)exception OF_UNAVAILABLE;
/**
* @brief Initializes an already allocated open Windows registry key failed
* exception.
*
* @param registryKey The registry key on which opening the subkey failed
* @param path The path for the subkey that could not be opened
* @param options The options for the subkey that could not be opened
* @param securityAndAccessRights The security and access rights for the sub
* key that could not be opened
* @param status The status returned by RegOpenKeyEx()
* @return An initialized open Windows registry key failed exception
*/
- (instancetype)
initWithRegistryKey: (OFWindowsRegistryKey *)registryKey
path: (OFString *)path
options: (DWORD)options
securityAndAccessRights: (REGSAM)securityAndAccessRights
status: (LSTATUS)status OF_DESIGNATED_INITIALIZER;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|
Modified src/exceptions/OFOpenWindowsRegistryKeyFailedException.m
from [10e98dc632]
to [52118b22c0].
︙ | | |
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
-
+
-
+
|
return [[[self alloc] initWithRegistryKey: registryKey
path: path
options: options
securityAndAccessRights: securityAndAccessRights
status: status] autorelease];
}
- (instancetype)init
+ (instancetype)exception
{
OF_INVALID_INIT_METHOD
OF_UNRECOGNIZED_SELECTOR
}
- (instancetype)
initWithRegistryKey: (OFWindowsRegistryKey *)registryKey
path: (OFString *)path
options: (DWORD)options
securityAndAccessRights: (REGSAM)securityAndAccessRights
|
︙ | | |
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
+
+
+
+
+
|
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (void)dealloc
{
[_registryKey release];
[_path release];
[super dealloc];
|
︙ | | |