ObjFW  Check-in [85e8ccc3a5]

Overview
Comment:Make exception properties atomic.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 85e8ccc3a5470bda68581b1783893caf2849352c4f1f9deda0168786365609b1
User & Date: js on 2013-11-20 22:06:00
Other Links: manifest | tags
Context
2013-11-22
18:23
of_asprintf.m: Fix coding style. check-in: 619cced011 user: js tags: trunk
2013-11-20
22:06
Make exception properties atomic. check-in: 85e8ccc3a5 user: js tags: trunk
20:47
OFZIP: Explain override options. check-in: f026fdfacf user: js tags: trunk
Changes

Modified src/exceptions/OFAcceptFailedException.h from [f0e4e112f3] to [6162445a87].

30
31
32
33
34
35
36
37

38
39
40
41
42
43
44
30
31
32
33
34
35
36

37
38
39
40
41
42
43
44







-
+







@interface OFAcceptFailedException: OFException
{
	OFTCPSocket *_socket;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFTCPSocket *socket;
@property (readonly, retain) OFTCPSocket *socket;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased accept failed exception.
 *
 * @param socket The socket which could not accept a connection

Modified src/exceptions/OFAcceptFailedException.m from [0b32311d32] to [a8b056d8fd].

64
65
66
67
68
69
70
71

72
73
74
75
76
77
78
79
80
81
82
64
65
66
67
68
69
70

71
72
73
74
75
76
77
78
79
80
81
82







-
+











	return [OFString stringWithFormat:
	    @"Failed to accept connection in socket of class %@! " ERRFMT,
	    [_socket class], ERRPARAM];
}

- (OFTCPSocket*)socket
{
	OF_GETTER(_socket, false)
	OF_GETTER(_socket, true)
}

- (int)errNo
{
#ifdef _WIN32
	return of_wsaerr_to_errno(_errNo);
#else
	return _errNo;
#endif
}
@end

Modified src/exceptions/OFAddressTranslationFailedException.h from [a3e30f5dc7] to [f282b28211].

31
32
33
34
35
36
37
38
39


40
41
42
43
44
45
46
31
32
33
34
35
36
37


38
39
40
41
42
43
44
45
46







-
-
+
+







{
	OFTCPSocket *_socket;
	OFString    *_host;
	int	    _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *host;
@property (readonly, retain, nonatomic) OFTCPSocket *socket;
@property (readonly, copy) OFString *host;
@property (readonly, retain) OFTCPSocket *socket;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased address translation failed exception.
 *
 * @param socket The socket which could not translate the address

Modified src/exceptions/OFAddressTranslationFailedException.m from [c103e6dc5d] to [e5b08ed3d1].

103
104
105
106
107
108
109
110

111
112
113
114
115

116
117
118
119
120
121
122
123
124
125
126
103
104
105
106
107
108
109

110
111
112
113
114

115
116
117
118
119
120
121
122
123
124
125
126







-
+




-
+











		return [OFString stringWithFormat:
		    @"An address could not be translated! " ERRFMT,
		    AT_ERRPARAM];
}

- (OFString*)host
{
	OF_GETTER(_host, false)
	OF_GETTER(_host, true)
}

- (OFTCPSocket*)socket
{
	OF_GETTER(_socket, false)
	OF_GETTER(_socket, true)
}

- (int)errNo
{
#ifdef _WIN32
	return of_wsaerr_to_errno(_errNo);
#else
	return _errNo;
#endif
}
@end

Modified src/exceptions/OFAlreadyConnectedException.h from [04eb25813d] to [08f9dbcbbf].

28
29
30
31
32
33
34
35

36
37
38
39
40
41
42
28
29
30
31
32
33
34

35
36
37
38
39
40
41
42







-
+







 */
@interface OFAlreadyConnectedException: OFException
{
	OFTCPSocket *_socket;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFTCPSocket *socket;
@property (readonly, retain) OFTCPSocket *socket;
#endif

/*!
 * @brief Creates a new, autoreleased already connected exception.
 *
 * @param socket The socket which is already connected
 * @return A new, autoreleased already connected exception

Modified src/exceptions/OFAlreadyConnectedException.m from [19c0342b16] to [c94a781825].

55
56
57
58
59
60
61
62

63
64
55
56
57
58
59
60
61

62
63
64







-
+


		    [_socket class]];
	else
		return @"A connection has already been established!";
}

- (OFTCPSocket*)socket
{
	OF_GETTER(_socket, false)
	OF_GETTER(_socket, true)
}
@end

Modified src/exceptions/OFBindFailedException.h from [3a09e72633] to [10e7844d52].

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







-
+

-
+







	OFTCPSocket *_socket;
	OFString    *_host;
	uint16_t    _port;
	int	    _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *host;
@property (readonly, copy) OFString *host;
@property (readonly) uint16_t port;
@property (readonly, retain, nonatomic) OFTCPSocket *socket;
@property (readonly, retain) OFTCPSocket *socket;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased bind failed exception.
 *
 * @param host The host on which binding failed

Modified src/exceptions/OFBindFailedException.m from [0685d3e4c2] to [8568a2e239].

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
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







-
+









-
+











	return [OFString stringWithFormat:
	    @"Binding to port %" @PRIu16 @" on host %@ failed in socket of "
	    @"type %@! " ERRFMT, _port, _host, [_socket class], ERRPARAM];
}

- (OFString*)host
{
	OF_GETTER(_host, false)
	OF_GETTER(_host, true)
}

- (uint16_t)port
{
	return _port;
}

- (OFTCPSocket*)socket
{
	OF_GETTER(_socket, false)
	OF_GETTER(_socket, true)
}

- (int)errNo
{
#ifdef _WIN32
	return of_wsaerr_to_errno(_errNo);
#else
	return _errNo;
#endif
}
@end

Modified src/exceptions/OFChangeCurrentDirectoryPathFailedException.h from [5677a9d1f1] to [c87d31cd14].

25
26
27
28
29
30
31
32

33
34
35
36
37
38
39
25
26
27
28
29
30
31

32
33
34
35
36
37
38
39







-
+







@interface OFChangeCurrentDirectoryPathFailedException: OFException
{
	OFString *_path;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *path;
@property (readonly, copy) OFString *path;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased change current directory path failed
 *	  exception.
 *

Modified src/exceptions/OFChangeCurrentDirectoryPathFailedException.m from [a962360020] to [ec26a362b7].

68
69
70
71
72
73
74
75

76
77
78
79
80
81
82
68
69
70
71
72
73
74

75
76
77
78
79
80
81
82







-
+







	return [OFString stringWithFormat:
	    @"Failed to change the current directory path to %@! " ERRFMT,
	    _path, ERRPARAM];
}

- (OFString*)path
{
	OF_GETTER(_path, false)
	OF_GETTER(_path, true)
}

- (int)errNo
{
	return _errNo;
}
@end

Modified src/exceptions/OFChangeOwnerFailedException.h from [f2dbd49a78] to [300827002e].

25
26
27
28
29
30
31
32

33
34
35
36
37
38
39
25
26
27
28
29
30
31

32
33
34
35
36
37
38
39







-
+







@interface OFChangeOwnerFailedException: OFException
{
	OFString *_path, *_owner, *_group;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *path, *owner, *group;
@property (readonly, copy) OFString *path, *owner, *group;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased change owner failed exception.
 *
 * @param path The path of the item

Modified src/exceptions/OFChangeOwnerFailedException.m from [c4778e2f1f] to [da5fdc5878].

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
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







-
+




-
+




-
+








		return [OFString stringWithFormat:
		    @"Failed to change owner of item at path %@ to %@:%@! "
		    ERRFMT, _path, _owner, _group, ERRPARAM];
}

- (OFString*)path
{
	OF_GETTER(_path, false)
	OF_GETTER(_path, true)
}

- (OFString*)owner
{
	OF_GETTER(_owner, false)
	OF_GETTER(_owner, true)
}

- (OFString*)group
{
	OF_GETTER(_group, false)
	OF_GETTER(_group, true)
}

- (int)errNo
{
	return _errNo;
}
@end
#endif

Modified src/exceptions/OFChangePermissionsFailedException.h from [61b9c436c8] to [9a37a3661e].

28
29
30
31
32
33
34
35

36
37
38
39
40
41
42
28
29
30
31
32
33
34

35
36
37
38
39
40
41
42







-
+







{
	OFString *_path;
	mode_t _permissions;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *path;
@property (readonly, copy) OFString *path;
@property (readonly) mode_t permissions;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased change permissions failed exception.
 *

Modified src/exceptions/OFChangePermissionsFailedException.m from [f45ef169fb] to [95d5918ec4].

72
73
74
75
76
77
78
79

80
81
82
83
84
85
86
87
88
89
90
91
72
73
74
75
76
77
78

79
80
81
82
83
84
85
86
87
88
89
90
91







-
+












	return [OFString stringWithFormat:
	    @"Failed to change permissions of item at path %@ to %d! " ERRFMT,
	    _path, _permissions, ERRPARAM];
}

- (OFString*)path
{
	OF_GETTER(_path, false)
	OF_GETTER(_path, true)
}

- (mode_t)permissions
{
	return _permissions;
}

- (int)errNo
{
	return _errNo;
}
@end

Modified src/exceptions/OFConditionBroadcastFailedException.h from [d91cb950af] to [3ff338b702].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+







 */
@interface OFConditionBroadcastFailedException: OFException
{
	OFCondition *_condition;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFCondition *condition;
@property (readonly, retain) OFCondition *condition;
#endif

/*!
 * @brief Returns a new, autoreleased condition broadcast failed exception.
 *
 * @param condition The condition which could not be broadcasted
 * @return A new, autoreleased condition broadcast failed exception

Modified src/exceptions/OFConditionBroadcastFailedException.m from [687deff470] to [216f113c36].

60
61
62
63
64
65
66
67

68
69
60
61
62
63
64
65
66

67
68
69







-
+


{
	return [OFString stringWithFormat:
	    @"Broadcasting a condition of type %@ failed!", [_condition class]];
}

- (OFCondition*)condition
{
	OF_GETTER(_condition, false)
	OF_GETTER(_condition, true)
}
@end

Modified src/exceptions/OFConditionSignalFailedException.h from [29beaca23e] to [bbcaee08fc].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+







 */
@interface OFConditionSignalFailedException: OFException
{
	OFCondition *_condition;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFCondition *condition;
@property (readonly, retain) OFCondition *condition;
#endif

/*!
 * @brief Creates a new, autoreleased condition signal failed exception.
 *
 * @param condition The condition which could not be signaled
 * @return A new, autoreleased condition signal failed exception

Modified src/exceptions/OFConditionSignalFailedException.m from [86cb7e17c0] to [e285820a8f].

60
61
62
63
64
65
66
67

68
69
60
61
62
63
64
65
66

67
68
69







-
+


{
	return [OFString stringWithFormat:
	    @"Signaling a condition of type %@ failed!", [_condition class]];
}

- (OFCondition*)condition
{
	OF_GETTER(_condition, false)
	OF_GETTER(_condition, true)
}
@end

Modified src/exceptions/OFConditionStillWaitingException.h from [9a12108683] to [ae404bab50].

28
29
30
31
32
33
34
35

36
37
38
39
40
41
42
28
29
30
31
32
33
34

35
36
37
38
39
40
41
42







-
+







 */
@interface OFConditionStillWaitingException: OFException
{
	OFCondition *_condition;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFCondition *condition;
@property (readonly, retain) OFCondition *condition;
#endif

/*!
 * @brief Creates a new, autoreleased condition still waiting exception.
 *
 * @param condition The condition for which is still being waited
 * @return A new, autoreleased condition still waiting exception

Modified src/exceptions/OFConditionStillWaitingException.m from [d3b56a4ad3] to [00e380e989].

61
62
63
64
65
66
67
68

69
70
61
62
63
64
65
66
67

68
69
70







-
+


	return [OFString stringWithFormat:
	    @"Deallocation of a condition of type %@ was tried, even though a "
	    @"thread was still waiting for it!", [_condition class]];
}

- (OFCondition*)condition
{
	OF_GETTER(_condition, false)
	OF_GETTER(_condition, true)
}
@end

Modified src/exceptions/OFConditionWaitFailedException.h from [de7db2140c] to [6e50c0e94e].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+







 */
@interface OFConditionWaitFailedException: OFException
{
	OFCondition *_condition;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFCondition *condition;
@property (readonly, retain) OFCondition *condition;
#endif

/*!
 * @brief Creates a new, autoreleased condition wait failed exception.
 *
 * @param condition The condition for which could not be waited
 * @return A new, autoreleased condition wait failed exception

Modified src/exceptions/OFConditionWaitFailedException.m from [65ff5cc010] to [eacb3cb5f7].

60
61
62
63
64
65
66
67

68
69
60
61
62
63
64
65
66

67
68
69







-
+


{
	return [OFString stringWithFormat:
	    @"Waiting for a condition of type %@ failed!", [_condition class]];
}

- (OFCondition*)condition
{
	OF_GETTER(_condition, false)
	OF_GETTER(_condition, true)
}
@end

Modified src/exceptions/OFConnectionFailedException.h from [61282e85bf] to [6d0b161eef].

32
33
34
35
36
37
38
39
40


41
42
43
44
45
46
47
32
33
34
35
36
37
38


39
40
41
42
43
44
45
46
47







-
-
+
+







	OFTCPSocket *_socket;
	OFString    *_host;
	uint16_t    _port;
	int	    _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFTCPSocket *socket;
@property (readonly, copy, nonatomic) OFString *host;
@property (readonly, retain) OFTCPSocket *socket;
@property (readonly, copy) OFString *host;
@property (readonly) uint16_t port;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased connection failed exception.
 *

Modified src/exceptions/OFConnectionFailedException.m from [4036f5e827] to [471928a109].

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
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







-
+









-
+











	    @"A connection to %@ on port %" @PRIu16 @" could not be "
	    @"established in socket of type %@! " ERRFMT, _host, _port,
	    [_socket class], ERRPARAM];
}

- (OFString*)host
{
	OF_GETTER(_host, false)
	OF_GETTER(_host, true)
}

- (uint16_t)port
{
	return _port;
}

- (OFTCPSocket*)socket
{
	OF_GETTER(_socket, false)
	OF_GETTER(_socket, true)
}

- (int)errNo
{
#ifdef _WIN32
	return of_wsaerr_to_errno(_errNo);
#else
	return _errNo;
#endif
}
@end

Modified src/exceptions/OFCopyFileFailedException.h from [7fef79058c] to [ef3edabe1c].

24
25
26
27
28
29
30
31
32


33
34
35
36
37
38
39
24
25
26
27
28
29
30


31
32
33
34
35
36
37
38
39







-
-
+
+







@interface OFCopyFileFailedException: OFException
{
	OFString *_sourcePath, *_destinationPath;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *sourcePath;
@property (readonly, copy, nonatomic) OFString *destinationPath;
@property (readonly, copy) OFString *sourcePath;
@property (readonly, copy) OFString *destinationPath;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased copy file failed exception.
 *
 * @param sourcePath The original path

Modified src/exceptions/OFCopyFileFailedException.m from [124bf86a2d] to [e2611a58a4].

73
74
75
76
77
78
79
80

81
82
83
84
85

86
87
88
89
90
91
92
73
74
75
76
77
78
79

80
81
82
83
84

85
86
87
88
89
90
91
92







-
+




-
+







	return [OFString stringWithFormat:
	    @"Failed to copy file %@ to %@! " ERRFMT, _sourcePath,
	    _destinationPath, ERRPARAM];
}

- (OFString*)sourcePath
{
	OF_GETTER(_sourcePath, false)
	OF_GETTER(_sourcePath, true)
}

- (OFString*)destinationPath
{
	OF_GETTER(_destinationPath, false)
	OF_GETTER(_destinationPath, true)
}

- (int)errNo
{
	return _errNo;
}
@end

Modified src/exceptions/OFCreateDirectoryFailedException.h from [5df77d0e78] to [0bb5e38242].

24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38







-
+







@interface OFCreateDirectoryFailedException: OFException
{
	OFString *_path;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *path;
@property (readonly, copy) OFString *path;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased create directory failed exception.
 *
 * @param path A string with the path of the directory which could not be

Modified src/exceptions/OFCreateDirectoryFailedException.m from [afa7c99661] to [50fb411f1e].

67
68
69
70
71
72
73
74

75
76
77
78
79
80
81
67
68
69
70
71
72
73

74
75
76
77
78
79
80
81







-
+







{
	return [OFString stringWithFormat:
	    @"Failed to create directory %@! " ERRFMT, _path, ERRPARAM];
}

- (OFString*)path
{
	OF_GETTER(_path, false)
	OF_GETTER(_path, true)
}

- (int)errNo
{
	return _errNo;
}
@end

Modified src/exceptions/OFCreateSymbolicLinkFailedException.h from [269d5052a0] to [8302938581].

25
26
27
28
29
30
31
32

33
34
35
36
37
38
39
25
26
27
28
29
30
31

32
33
34
35
36
37
38
39







-
+







@interface OFCreateSymbolicLinkFailedException: OFException
{
	OFString *_sourcePath, *_destinationPath;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *sourcePath, *destinationPath;
@property (readonly, copy) OFString *sourcePath, *destinationPath;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased create symbolic link failed exception.
 *
 * @param sourcePath The source for the symbolic link

Modified src/exceptions/OFCreateSymbolicLinkFailedException.m from [1052a2a91b] to [a5e043dcde].

74
75
76
77
78
79
80
81

82
83
84
85
86

87
88
89
90
91
92
93
94
74
75
76
77
78
79
80

81
82
83
84
85

86
87
88
89
90
91
92
93
94







-
+




-
+








	return [OFString stringWithFormat:
	    @"Failed to symlink file %@ to %@! " ERRFMT, _sourcePath,
	    _destinationPath, ERRPARAM];
}

- (OFString*)sourcePath
{
	OF_GETTER(_sourcePath, false)
	OF_GETTER(_sourcePath, true)
}

- (OFString*)destinationPath
{
	OF_GETTER(_destinationPath, false)
	OF_GETTER(_destinationPath, true)
}

- (int)errNo
{
	return _errNo;
}
@end
#endif

Modified src/exceptions/OFEnumerationMutationException.h from [6053c2c8e1] to [736441a296].

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







 */
@interface OFEnumerationMutationException: OFException
{
	id _object;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) id object;
@property (readonly, retain) id object;
#endif

/*!
 * @brief Creates a new, autoreleased enumeration mutation exception.
 *
 * @param object The object which was mutated during enumeration
 * @return A new, autoreleased enumeration mutation exception

Modified src/exceptions/OFEnumerationMutationException.m from [c30d82b1bf] to [3af9010d50].

62
63
64
65
66
67
68
69

70
71
62
63
64
65
66
67
68

69
70
71







-
+


	return [OFString stringWithFormat:
	    @"Object of class %@ was mutated during enumeration!",
	    [_object class]];
}

- (id)object
{
	OF_GETTER(_object, false)
	OF_GETTER(_object, true)
}
@end

Modified src/exceptions/OFHTTPRequestFailedException.h from [aaa6f5e687] to [17489e9366].

29
30
31
32
33
34
35
36
37


38
39
40
41
42
43
44
29
30
31
32
33
34
35


36
37
38
39
40
41
42
43
44







-
-
+
+







@interface OFHTTPRequestFailedException: OFException
{
	OFHTTPRequest *_request;
	OFHTTPResponse *_response;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFHTTPRequest *request;
@property (readonly, retain, nonatomic) OFHTTPResponse *response;
@property (readonly, retain) OFHTTPRequest *request;
@property (readonly, retain) OFHTTPResponse *response;
#endif

/*!
 * @brief Creates a new, autoreleased HTTP request failed exception.
 *
 * @param request The HTTP request which failed
 * @param response The response for the failed HTTP request

Modified src/exceptions/OFHTTPRequestFailedException.m from [20d9b200ef] to [34b6f2f053].

72
73
74
75
76
77
78
79

80
81
82
83
84

85
86
72
73
74
75
76
77
78

79
80
81
82
83

84
85
86







-
+




-
+


	return [OFString stringWithFormat:
	    @"An HTTP %s request with URL %@ failed with code %d!", method,
	    [_request URL], [_response statusCode]];
}

- (OFHTTPRequest*)request
{
	OF_GETTER(_request, false)
	OF_GETTER(_request, true)
}

- (OFHTTPResponse*)response
{
	OF_GETTER(_response, false)
	OF_GETTER(_response, true)
}
@end

Modified src/exceptions/OFHashAlreadyCalculatedException.h from [26212e193a] to [208caa0cd4].

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







 */
@interface OFHashAlreadyCalculatedException: OFException
{
	id <OFHash> _hashObject;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) id <OFHash> hashObject;
@property (readonly, retain) id <OFHash> hashObject;
#endif

/*!
 * @brief Creates a new, autoreleased hash already calculated exception.
 *
 * @param hash The hash which has already been calculated
 * @return A new, autoreleased hash already calculated exception

Modified src/exceptions/OFHashAlreadyCalculatedException.m from [65fa9294da] to [18369c4a51].

62
63
64
65
66
67
68
69

70
71
62
63
64
65
66
67
68

69
70
71







-
+


	return [OFString stringWithFormat:
	    @"The hash of type %@ has already been calculated and thus no new "
	    @"data can be added!", [_hashObject class]];
}

- (id <OFHash>)hashObject
{
	OF_GETTER(_hashObject, false)
	OF_GETTER(_hashObject, true)
}
@end

Modified src/exceptions/OFInvalidJSONException.h from [3557533be7] to [31be3be4c3].

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







@interface OFInvalidJSONException: OFException
{
	OFString *_string;
	size_t _line;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *string;
@property (readonly, copy) OFString *string;
@property (readonly) size_t line;
#endif

/*!
 * @brief Creates a new, autoreleased invalid JSON exception.
 *
 * @param string The string containing the invalid JSON representation

Modified src/exceptions/OFInvalidJSONException.m from [71b494f3aa] to [559483f21d].

16
17
18
19
20
21
22


23
24
25
26
27
28
29
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31







+
+








#include "config.h"

#include <stdlib.h>

#import "OFInvalidJSONException.h"
#import "OFString.h"

#import "macros.h"

@implementation OFInvalidJSONException
+ (instancetype)exceptionWithString: (OFString*)string
			       line: (size_t)line
{
	return [[[self alloc] initWithString: string
					line: line] autorelease];
68
69
70
71
72
73
74
75

76
77
78
79
80
81
82
70
71
72
73
74
75
76

77
78
79
80
81
82
83
84







-
+







{
	return [OFString stringWithFormat:
	    @"The JSON representation is invalid in line %zu!", _line];
}

- (OFString*)string
{
	return _string;
	OF_GETTER(_string, true)
}

- (size_t)line
{
	return _line;
}
@end

Modified src/exceptions/OFLinkFailedException.h from [289b5d8829] to [6df778cc47].

25
26
27
28
29
30
31
32

33
34
35
36
37
38
39
25
26
27
28
29
30
31

32
33
34
35
36
37
38
39







-
+







@interface OFLinkFailedException: OFException
{
	OFString *_sourcePath, *_destinationPath;
	int _errNo;
}

# ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *sourcePath, *destinationPath;
@property (readonly, copy) OFString *sourcePath, *destinationPath;
@property (readonly) int errNo;
# endif

/*!
 * @brief Creates a new, autoreleased link failed exception.
 *
 * @param sourcePath The source for the link

Modified src/exceptions/OFLinkFailedException.m from [2c1c49820b] to [72257aafbd].

74
75
76
77
78
79
80
81

82
83
84
85
86

87
88
89
90
91
92
93
94
74
75
76
77
78
79
80

81
82
83
84
85

86
87
88
89
90
91
92
93
94







-
+




-
+








	return [OFString stringWithFormat:
	    @"Failed to link file %@ to %@! " ERRFMT, _sourcePath,
	    _destinationPath, ERRPARAM];
}

- (OFString*)sourcePath
{
	OF_GETTER(_sourcePath, false)
	OF_GETTER(_sourcePath, true)
}

- (OFString*)destinationPath
{
	OF_GETTER(_destinationPath, false)
	OF_GETTER(_destinationPath, true)
}

- (int)errNo
{
	return _errNo;
}
@end
#endif

Modified src/exceptions/OFListenFailedException.h from [e39552a483] to [9e94f6e60c].

30
31
32
33
34
35
36
37

38
39
40
41
42
43
44
30
31
32
33
34
35
36

37
38
39
40
41
42
43
44







-
+







@interface OFListenFailedException: OFException
{
	OFTCPSocket *_socket;
	int _backLog, _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFTCPSocket *socket;
@property (readonly, retain) OFTCPSocket *socket;
@property (readonly) int backLog, errNo;
#endif

/*!
 * @brief Creates a new, autoreleased listen failed exception.
 *
 * @param socket The socket which failed to listen

Modified src/exceptions/OFListenFailedException.m from [0f57a25169] to [b821e4cd80].

68
69
70
71
72
73
74
75

76
77
78
79
80
81
82
68
69
70
71
72
73
74

75
76
77
78
79
80
81
82







-
+







	return [OFString stringWithFormat:
	    @"Failed to listen in socket of type %@ with a back log of %d! "
	    ERRFMT, [_socket class], _backLog, ERRPARAM];
}

- (OFTCPSocket*)socket
{
	OF_GETTER(_socket, false)
	OF_GETTER(_socket, true)
}

- (int)backLog
{
	return _backLog;
}

Modified src/exceptions/OFLockFailedException.h from [6a3162b4c6] to [e996a43b5d].

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







 */
@interface OFLockFailedException: OFException
{
	id <OFLocking> _lock;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) id <OFLocking> lock;
@property (readonly, retain) id <OFLocking> lock;
#endif

/*!
 * @brief Creates a new, autoreleased lock failed exception.
 *
 * @param lock The lock which could not be locked
 * @return A new, autoreleased lock failed exception

Modified src/exceptions/OFLockFailedException.m from [228ff4b707] to [9417f5830f].

50
51
52
53
54
55
56
57

58
59
50
51
52
53
54
55
56

57
58
59







-
+


		    @"A lock of type %@ could not be locked!", [_lock class]];
	else
		return @"A lock could not be locked!";
}

- (id <OFLocking>)lock
{
	OF_GETTER(_lock, false)
	OF_GETTER(_lock, true)
}
@end

Modified src/exceptions/OFMalformedXMLException.h from [e26d3a6383] to [944f135d12].

23
24
25
26
27
28
29
30

31
32
33
34
35
36
37
23
24
25
26
27
28
29

30
31
32
33
34
35
36
37







-
+







 */
@interface OFMalformedXMLException: OFException
{
	OFXMLParser *_parser;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFXMLParser *parser;
@property (readonly, retain) OFXMLParser *parser;
#endif

/*!
 * @brief Creates a new, autoreleased malformed XML exception.
 *
 * @param parser The parser which encountered malformed XML
 * @return A new, autoreleased malformed XML exception

Modified src/exceptions/OFMalformedXMLException.m from [5e3ec3023c] to [dce21fa980].

52
53
54
55
56
57
58
59

60
61
52
53
54
55
56
57
58

59
60
61







-
+


		    @"line %zu!", [_parser class], [_parser lineNumber]];
	else
		return @"An XML parser encountered malformed XML!";
}

- (OFXMLParser*)parser
{
	OF_GETTER(_parser, false)
	OF_GETTER(_parser, true)
}
@end

Modified src/exceptions/OFMemoryNotPartOfObjectException.h from [c07cfbf85b] to [5621bda900].

23
24
25
26
27
28
29
30

31
32
33
34
35
36
37
23
24
25
26
27
28
29

30
31
32
33
34
35
36
37







-
+







{
	void *_pointer;
	id _object;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly) void *pointer;
@property (readonly, retain, nonatomic) id object;
@property (readonly, retain) id object;
#endif

/*!
 * @brief Creates a new, autoreleased 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

Modified src/exceptions/OFMemoryNotPartOfObjectException.m from [c419e3c092] to [ce4e415b85].

16
17
18
19
20
21
22


23
24
25
26
27
28
29
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31







+
+








#include "config.h"

#include <stdlib.h>

#import "OFMemoryNotPartOfObjectException.h"
#import "OFString.h"

#import "macros.h"

@implementation OFMemoryNotPartOfObjectException
+ (instancetype)exceptionWithPointer: (void*)pointer
			      object: (id)object
{
	return [[[self alloc] initWithPointer: pointer
				       object: object] autorelease];
71
72
73
74
75
76
77
78

79
80
73
74
75
76
77
78
79

80
81
82







-
+


- (void*)pointer
{
	return _pointer;
}

- (id)object
{
	return _object;
	OF_GETTER(_object, true)
}
@end

Modified src/exceptions/OFNotConnectedException.h from [6e928fd0ee] to [51e2278647].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+







 */
@interface OFNotConnectedException: OFException
{
	OFStreamSocket *_socket;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFStreamSocket *socket;
@property (readonly, retain) OFStreamSocket *socket;
#endif

/*!
 * @brief Creates a new, autoreleased not connected exception.
 *
 * @param socket The socket which is not connected
 * @return A new, autoreleased not connected exception

Modified src/exceptions/OFNotConnectedException.m from [4793cd3e58] to [395fdef6b4].

63
64
65
66
67
68
69
70

71
72
63
64
65
66
67
68
69

70
71
72







-
+


	return [OFString stringWithFormat:
	    @"The socket of type %@ is not connected or bound!",
	    [_socket class]];
}

- (OFStreamSocket*)socket
{
	OF_GETTER(_socket, false)
	OF_GETTER(_socket, true)
}
@end

Modified src/exceptions/OFNotImplementedException.h from [c744f2f9d8] to [3f6519dbf8].

24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38







-
+







{
	SEL _selector;
	id _object;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly) SEL selector;
@property (readonly, retain, nonatomic) id object;
@property (readonly, retain) id object;
#endif

/*!
 * @brief Creates a new, autoreleased 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

Modified src/exceptions/OFNotImplementedException.m from [a874727b43] to [3675507b02].

71
72
73
74
75
76
77
78

79
80
71
72
73
74
75
76
77

78
79
80







-
+


- (SEL)selector
{
	return _selector;
}

- (id)object
{
	return _object;
	OF_GETTER(_object, true)
}
@end

Modified src/exceptions/OFOpenFileFailedException.h from [b868a55f08] to [9e3ed1e892].

24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38







-
+







@interface OFOpenFileFailedException: OFException
{
	OFString *_path, *_mode;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *path, *mode;
@property (readonly, copy) OFString *path, *mode;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased open file failed exception.
 *
 * @param path A string with the path of the file tried to open

Modified src/exceptions/OFOpenFileFailedException.m from [81dda45767] to [c7d79c20a2].

73
74
75
76
77
78
79
80

81
82
83
84
85

86
87
88
89
90
91
92
73
74
75
76
77
78
79

80
81
82
83
84

85
86
87
88
89
90
91
92







-
+




-
+







	return [OFString stringWithFormat:
	    @"Failed to open file %@ with mode %@! " ERRFMT, _path, _mode,
	    ERRPARAM];
}

- (OFString*)path
{
	OF_GETTER(_path, false)
	OF_GETTER(_path, true)
}

- (OFString*)mode
{
	OF_GETTER(_mode, false)
	OF_GETTER(_mode, true)
}

- (int)errNo
{
	return _errNo;
}
@end

Modified src/exceptions/OFReadOrWriteFailedException.h from [b993663c55] to [6cde31ae1e].

28
29
30
31
32
33
34
35

36
37
38
39
40
41
42
28
29
30
31
32
33
34

35
36
37
38
39
40
41
42







-
+







	OFStream *_stream;
	size_t	 _requestedLength;
@public
	int	 _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFStream *stream;
@property (readonly, retain) OFStream *stream;
@property (readonly) size_t requestedLength;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased read or write failed exception.
 *

Modified src/exceptions/OFReadOrWriteFailedException.m from [32fe9f37fd] to [1a0bc9c6ea].

77
78
79
80
81
82
83
84

85
86
87
88
89
90
91
77
78
79
80
81
82
83

84
85
86
87
88
89
90
91







-
+







	return [OFString stringWithFormat:
	    @"Failed to read or write %zu bytes in a stream of type "
	    @"%@! " ERRFMT, _requestedLength, [_stream class], ERRPARAM];
}

- (OFStream*)stream
{
	OF_GETTER(_stream, false)
	OF_GETTER(_stream, true)
}

- (size_t)requestedLength
{
	return _requestedLength;
}

Modified src/exceptions/OFRemoveItemFailedException.h from [8b02487093] to [2417f72edb].

24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38







-
+







@interface OFRemoveItemFailedException: OFException
{
	OFString *_path;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *path;
@property (readonly, copy) OFString *path;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased remove failed exception.
 *
 * @param path The path of the item which could not be removed

Modified src/exceptions/OFRemoveItemFailedException.m from [e961218ed3] to [fc2e8c40c3].

67
68
69
70
71
72
73
74

75
76
77
78
79
80
81
67
68
69
70
71
72
73

74
75
76
77
78
79
80
81







-
+







{
	return [OFString stringWithFormat:
	    @"Failed to remove item at path %@! " ERRFMT, _path, ERRPARAM];
}

- (OFString*)path
{
	OF_GETTER(_path, false)
	OF_GETTER(_path, true)
}

- (int)errNo
{
	return _errNo;
}
@end

Modified src/exceptions/OFRenameItemFailedException.h from [fc64bbda0e] to [c4ff526794].

24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38







-
+







@interface OFRenameItemFailedException: OFException
{
	OFString *_sourcePath, *_destinationPath;
	int _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *sourcePath, *destinationPath;
@property (readonly, copy) OFString *sourcePath, *destinationPath;
@property (readonly) int errNo;
#endif

/*!
 * @brief Creates a new, autoreleased rename failed exception.
 *
 * @param sourcePath The original path

Modified src/exceptions/OFRenameItemFailedException.m from [3f5784c53b] to [c997242f11].

73
74
75
76
77
78
79
80

81
82
83
84
85

86
87
88
89
90
91
92
73
74
75
76
77
78
79

80
81
82
83
84

85
86
87
88
89
90
91
92







-
+




-
+







	return [OFString stringWithFormat:
	    @"Failed to rename item at path %@ to %@! " ERRFMT, _sourcePath,
	    _destinationPath, ERRPARAM];
}

- (OFString*)sourcePath
{
	OF_GETTER(_sourcePath, false)
	OF_GETTER(_sourcePath, true)
}

- (OFString*)destinationPath
{
	OF_GETTER(_destinationPath, false)
	OF_GETTER(_destinationPath, true)
}

- (int)errNo
{
	return _errNo;
}
@end

Modified src/exceptions/OFSeekFailedException.h from [1fb7b48763] to [72d3968f7a].

29
30
31
32
33
34
35
36

37
38
39
40
41
42
43
29
30
31
32
33
34
35

36
37
38
39
40
41
42
43







-
+







{
	OFSeekableStream *_stream;
	off_t _offset;
	int _whence, _errNo;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFSeekableStream *stream;
@property (readonly, retain) OFSeekableStream *stream;
@property (readonly) off_t offset;
@property (readonly) int whence, errNo;
#endif

/*!
 * @brief Creates a new, autoreleased seek failed exception.
 *

Modified src/exceptions/OFSeekFailedException.m from [b56aeff4f4] to [a61f6e2176].

72
73
74
75
76
77
78
79

80
81
82
83
84
85
86
72
73
74
75
76
77
78

79
80
81
82
83
84
85
86







-
+







	return [OFString stringWithFormat:
	    @"Seeking failed in stream of type %@! " ERRFMT, [_stream class],
	    ERRPARAM];
}

- (OFSeekableStream*)stream
{
	OF_GETTER(_stream, false)
	OF_GETTER(_stream, true)
}

- (off_t)offset
{
	return _offset;
}

Modified src/exceptions/OFSetOptionFailedException.h from [ecea3e530c] to [ed31d08d1c].

23
24
25
26
27
28
29
30

31
32
33
34
35
36
37
23
24
25
26
27
28
29

30
31
32
33
34
35
36
37







-
+







 */
@interface OFSetOptionFailedException: OFException
{
	OFStream *_stream;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFStream *stream;
@property (readonly, retain) OFStream *stream;
#endif

/*!
 * @brief Creates a new, autoreleased set option failed exception.
 *
 * @param stream The stream for which the option could not be set
 * @return A new, autoreleased set option failed exception

Modified src/exceptions/OFSetOptionFailedException.m from [57d4b54c8c] to [f58b958525].

63
64
65
66
67
68
69
70

71
72
63
64
65
66
67
68
69

70
71
72







-
+


	return [OFString stringWithFormat:
	    @"Setting an option in a stream of type %@ failed!",
	    [_stream class]];
}

- (OFStream*)stream
{
	OF_GETTER(_stream, false)
	OF_GETTER(_stream, true)
}
@end

Modified src/exceptions/OFStillLockedException.h from [d04ac10d66] to [f13bd828e0].

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







 */
@interface OFStillLockedException: OFException
{
	id <OFLocking> _lock;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) id <OFLocking> lock;
@property (readonly, retain) id <OFLocking> lock;
#endif

/*!
 * @brief Creates a new, autoreleased still locked exception.
 *
 * @param lock The lock which is still locked
 * @return A new, autoreleased still locked exception

Modified src/exceptions/OFStillLockedException.m from [ee03dade0c] to [a9e9bf2c69].

52
53
54
55
56
57
58
59

60
61
52
53
54
55
56
57
58

59
60
61







-
+


	else
		return @"Deallocation of a lock even though it was still "
		    @"locked!";
}

- (id <OFLocking>)lock
{
	OF_GETTER(_lock, false)
	OF_GETTER(_lock, true)
}
@end

Modified src/exceptions/OFThreadJoinFailedException.h from [24a339c50b] to [d123264c4d].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+







 */
@interface OFThreadJoinFailedException: OFException
{
	OFThread *_thread;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFThread *thread;
@property (readonly, retain) OFThread *thread;
#endif

/*!
 * @brief Creates a new, autoreleased thread join failed exception.
 *
 * @param thread The thread which could not be joined
 * @return A new, autoreleased thread join failed exception

Modified src/exceptions/OFThreadJoinFailedException.m from [aedf7e5de1] to [6799ed802b].

61
62
63
64
65
66
67
68

69
70
61
62
63
64
65
66
67

68
69
70







-
+


	return [OFString stringWithFormat:
	    @"Joining a thread of type %@ failed! Most likely, another thread "
	    @"already waits for the thread to join.", [_thread class]];
}

- (OFThread*)thread
{
	OF_GETTER(_thread, false)
	OF_GETTER(_thread, true)
}
@end

Modified src/exceptions/OFThreadStartFailedException.h from [cb2508253e] to [61aa6e4084].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+







 */
@interface OFThreadStartFailedException: OFException
{
	OFThread *_thread;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFThread *thread;
@property (readonly, retain) OFThread *thread;
#endif

/*!
 * @brief Creates a new, autoreleased thread start failed exception.
 *
 * @param thread The thread which could not be started
 * @return A new, autoreleased thread start failed exception

Modified src/exceptions/OFThreadStartFailedException.m from [2884001333] to [54005830f8].

60
61
62
63
64
65
66
67

68
69
60
61
62
63
64
65
66

67
68
69







-
+


{
	return [OFString stringWithFormat:
	    @"Starting a thread of type %@ failed!", [_thread class]];
}

- (OFThread*)thread
{
	OF_GETTER(_thread, false)
	OF_GETTER(_thread, true)
}
@end

Modified src/exceptions/OFThreadStillRunningException.h from [f6cbf16741] to [ae3feb4172].

27
28
29
30
31
32
33
34

35
36
37
38
39
40
41
27
28
29
30
31
32
33

34
35
36
37
38
39
40
41







-
+







 */
@interface OFThreadStillRunningException: OFException
{
	OFThread *_thread;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFThread *thread;
@property (readonly, retain) OFThread *thread;
#endif

/*!
 * @brief Creates a new, autoreleased thread still running exception.
 *
 * @param thread The thread which is still running
 * @return A new, autoreleased thread still running exception

Modified src/exceptions/OFThreadStillRunningException.m from [60db06da77] to [c77a91365a].

61
62
63
64
65
66
67
68

69
70
61
62
63
64
65
66
67

68
69
70







-
+


	return [OFString stringWithFormat:
	    @"Deallocation of a thread of type %@ was tried, even though it "
	    @"was still running!", [_thread class]];
}

- (OFThread*)thread
{
	OF_GETTER(_thread, false)
	OF_GETTER(_thread, true)
}
@end

Modified src/exceptions/OFUnboundNamespaceException.h from [8613058bed] to [5065484612].

25
26
27
28
29
30
31
32

33
34

35
36

37
38
39
40
41
42
43
25
26
27
28
29
30
31

32
33

34
35

36
37
38
39
40
41
42
43







-
+

-
+

-
+







{
	OFString *_namespace;
	OFXMLElement *_element;
}

#ifdef OF_HAVE_PROPERTIES
# ifdef __cplusplus
@property (readonly, copy, nonatomic, getter=namespace) OFString *namespace_;
@property (readonly, copy, getter=namespace) OFString *namespace_;
# else
@property (readonly, copy, nonatomic) OFString *namespace;
@property (readonly, copy) OFString *namespace;
# endif
@property (readonly, retain, nonatomic) OFXMLElement *element;
@property (readonly, retain) OFXMLElement *element;
#endif

/*!
 * @brief Creates a new, autoreleased unbound namespace exception.
 *
 * @param namespace_ The namespace which is unbound
 * @param element The element in which the namespace was not bound

Modified src/exceptions/OFUnboundNamespaceException.m from [37eac853b7] to [833fbe89dd].

73
74
75
76
77
78
79
80

81
82
83
84
85

86
87
73
74
75
76
77
78
79

80
81
82
83
84

85
86
87







-
+




-
+


	return [OFString stringWithFormat:
	    @"The namespace %@ is not bound in an element of type %@!",
	    _namespace, [_element class]];
}

- (OFString*)namespace
{
	OF_GETTER(_namespace, false)
	OF_GETTER(_namespace, true)
}

- (OFXMLElement*)element
{
	OF_GETTER(_element, false)
	OF_GETTER(_element, true)
}
@end

Modified src/exceptions/OFUnboundPrefixException.h from [b043c011f9] to [ee5905f9a4].

24
25
26
27
28
29
30
31
32


33
34
35
36
37
38
39
24
25
26
27
28
29
30


31
32
33
34
35
36
37
38
39







-
-
+
+







@interface OFUnboundPrefixException: OFException
{
	OFString *_prefix;
	OFXMLParser *_parser;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *prefix;
@property (readonly, retain, nonatomic) OFXMLParser *parser;
@property (readonly, copy) OFString *prefix;
@property (readonly, retain) OFXMLParser *parser;
#endif

/*!
 * @brief Creates a new, autoreleased unbound prefix exception.
 *
 * @param prefix The prefix which is unbound
 * @param parser The parser which encountered the unbound prefix

Modified src/exceptions/OFUnboundPrefixException.m from [2ace552f90] to [b76d254da0].

73
74
75
76
77
78
79
80

81
82
83
84
85

86
87
73
74
75
76
77
78
79

80
81
82
83
84

85
86
87







-
+




-
+


	return [OFString stringWithFormat:
	    @"An XML parser of type %@ encountered the unbound prefix %@ in "
	    @"line %zu!", [_parser class], _prefix, [_parser lineNumber]];
}

- (OFString*)prefix
{
	OF_GETTER(_prefix, false)
	OF_GETTER(_prefix, true)
}

- (OFXMLParser*)parser
{
	OF_GETTER(_parser, false)
	OF_GETTER(_parser, true)
}
@end

Modified src/exceptions/OFUnlockFailedException.h from [a0438c9811] to [b9266f1783].

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







 */
@interface OFUnlockFailedException: OFException
{
	id <OFLocking> _lock;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) id <OFLocking> lock;
@property (readonly, retain) id <OFLocking> lock;
#endif

/*!
 * @brief Creates a new, autoreleased unlock failed exception.
 *
 * @param lock The lock which could not be unlocked
 * @return A new, autoreleased unlock failed exception

Modified src/exceptions/OFUnlockFailedException.m from [758cbe9463] to [04cf4cfab5].

50
51
52
53
54
55
56
57

58
59
50
51
52
53
54
55
56

57
58
59







-
+


		    @"A lock of type %@ could not be unlocked!", [_lock class]];
	else
		return @"A lock could not be unlocked!";
}

- (id <OFLocking>)lock
{
	OF_GETTER(_lock, false)
	OF_GETTER(_lock, true)
}
@end

Modified src/exceptions/OFUnsupportedProtocolException.h from [eb9f027dc9] to [a6d04c74db].

24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
24
25
26
27
28
29
30

31
32
33
34
35
36
37
38







-
+







 */
@interface OFUnsupportedProtocolException: OFException
{
	OFURL *_URL;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain, nonatomic) OFURL *URL;
@property (readonly, retain) OFURL *URL;
#endif

/*!
 * @brief Creates a new, autoreleased unsupported protocol exception.
 *
 * @param URL The URL whose protocol is unsupported
 * @return A new, autoreleased unsupported protocol exception

Modified src/exceptions/OFUnsupportedProtocolException.m from [faf85806a1] to [d7d8e84a71].

67
68
69
70
71
72
73
74

75
76
67
68
69
70
71
72
73

74
75
76







-
+


{
	return [OFString stringWithFormat:
	    @"The protocol of URL %@ is not supported!", _URL];
}

- (OFURL*)URL
{
	OF_GETTER(_URL, false)
	OF_GETTER(_URL, true)
}
@end

Modified src/exceptions/OFUnsupportedVersionException.h from [58fd352d36] to [1be96af745].

22
23
24
25
26
27
28
29

30
31
32
33
34
35
36
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36







-
+







 */
@interface OFUnsupportedVersionException: OFException
{
	OFString *_version;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy, nonatomic) OFString *version;
@property (readonly, copy) OFString *version;
#endif

/*!
 * @brief Creates a new, autoreleased unsupported version exception.
 *
 * @param version The version which is unsupported
 * @return A new, autoreleased unsupported version exception

Modified src/exceptions/OFUnsupportedVersionException.m from [d8db0ec580] to [efe3ce39e5].

67
68
69
70
71
72
73
74

75
76
67
68
69
70
71
72
73

74
75
76







-
+


	return [OFString stringWithFormat:
	    @"Version %@ of the format or protocol is not supported!",
	    _version];
}

- (OFString*)version
{
	OF_GETTER(_version, false)
	OF_GETTER(_version, true)
}
@end