ObjFW  Check-in [c7adbcf399]

Overview
Comment:Clean up properties in exceptions.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c7adbcf399e20e8ec4cc639c54e7963411567e2708a6b32873e88000c8e8a7bc
User & Date: js on 2012-10-02 11:00:04
Other Links: manifest | tags
Context
2012-10-02
11:05
OFHTTPRequestFailedException: Naming consistency check-in: 991ced5333 user: js tags: trunk
11:00
Clean up properties in exceptions. check-in: c7adbcf399 user: js tags: trunk
00:07
Remove -[OFThreadPool dispatchWithBlock:object:]. check-in: 54e323d0c9 user: js tags: trunk
Changes

Modified src/exceptions/OFAcceptFailedException.h from [63cfcda559] to [5c60d8a388].

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 OFAcceptFailedException: OFException
{
	OFTCPSocket *socket;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param socket The socket which could not accept a connection
 * \return A new accept failed exception

Modified src/exceptions/OFAcceptFailedException.m from [c0bc1a68c7] to [6fe3a15731].

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







-
+







	    inClass, ERRPARAM];

	return description;
}

- (OFTCPSocket*)socket
{
	return socket;
	OF_GETTER(socket, NO)
}

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

Modified src/exceptions/OFAddressTranslationFailedException.h from [cd35f66c20] to [ee7d1ec412].

25
26
27
28
29
30
31
32
33


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


32
33
34
35
36
37
38
39
40







-
-
+
+







{
	OFTCPSocket *socket;
	OFString    *host;
	int	    errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param socket The socket which could not translate the address
 * \param host The host for which translation was requested

Modified src/exceptions/OFAddressTranslationFailedException.m from [82fc8ee460] to [37a25d4426].

85
86
87
88
89
90
91
92

93
94
95
96
97
98
99
100
101
102
103
104
85
86
87
88
89
90
91

92
93
94
95
96
97
98
99
100
101
102
103
104







-
+












		    inClass, AT_ERRPARAM];

	return description;
}

- (OFTCPSocket*)socket
{
	return socket;
	OF_GETTER(socket, NO)
}

- (OFString*)host
{
	return host;
}

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

Modified src/exceptions/OFAlreadyConnectedException.h from [780337ce08] to [215f2f15e9].

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 OFAlreadyConnectedException: OFException
{
	OFTCPSocket *socket;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param socket The socket which is already connected
 * \return A new already connected exception
 */

Modified src/exceptions/OFAlreadyConnectedException.m from [7c9868ccaa] to [1362a72420].

65
66
67
68
69
70
71
72

73
74
65
66
67
68
69
70
71

72
73
74







-
+


	    @"can't be connected or bound again!", inClass];

	return description;
}

- (OFTCPSocket*)socket
{
	return socket;
	OF_GETTER(socket, NO)
}
@end

Modified src/exceptions/OFBindFailedException.h from [1cb21176d8] to [b557cc926c].

26
27
28
29
30
31
32
33
34


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


33
34
35
36
37
38
39
40
41







-
-
+
+







	OFTCPSocket *socket;
	OFString    *host;
	uint16_t    port;
	int	    errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param socket The socket which could not be bound

Modified src/exceptions/OFBindFailedException.m from [d796c063e2] to [75170f8362].

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







-
+




-
+












	    ERRFMT, port, host, inClass, ERRPARAM];

	return description;
}

- (OFTCPSocket*)socket
{
	return socket;
	OF_GETTER(socket, NO)
}

- (OFString*)host
{
	return host;
	OF_GETTER(host, NO)
}

- (uint16_t)port
{
	return port;
}

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

Modified src/exceptions/OFChangeDirectoryFailedException.h from [2bfdc4915e] to [27731d5573].

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 OFChangeDirectoryFailedException: OFException
{
	OFString *path;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param path A string with the path of the directory to which couldn't be
 *	       changed

Modified src/exceptions/OFChangeDirectoryFailedException.m from [59a8888365] to [8119d48fc6].

77
78
79
80
81
82
83
84

85
86
77
78
79
80
81
82
83

84
85
86







-
+


- (int)errNo
{
	return errNo;
}

- (OFString*)path
{
	return path;
	OF_GETTER(path, NO)
}
@end

Modified src/exceptions/OFChangeFileModeFailedException.h from [9d077df600] to [b4e0e345ec].

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







-
+







{
	OFString *path;
	mode_t mode;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param path The path of the file

Modified src/exceptions/OFChangeFileModeFailedException.m from [2bb80dce5e] to [2fb214a922].

81
82
83
84
85
86
87
88

89
90
91
92
93
94
95
81
82
83
84
85
86
87

88
89
90
91
92
93
94
95







-
+







- (int)errNo
{
	return errNo;
}

- (OFString*)path
{
	return path;
	OF_GETTER(path, NO)
}

- (mode_t)mode
{
	return mode;
}
@end

Modified src/exceptions/OFChangeFileOwnerFailedException.h from [07f7fe91f1] to [4b9ac50bd0].

25
26
27
28
29
30
31
32
33
34



35
36
37
38
39
40
41
25
26
27
28
29
30
31



32
33
34
35
36
37
38
39
40
41







-
-
-
+
+
+







	OFString *path;
	OFString *owner;
	OFString *group;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param path The path of the file
 * \param owner The new owner for the file

Modified src/exceptions/OFChangeFileOwnerFailedException.m from [69fce37d1b] to [691dcbaf92].

97
98
99
100
101
102
103
104

105
106
107
108
109

110
111
112
113
114

115
116
117
97
98
99
100
101
102
103

104
105
106
107
108

109
110
111
112
113

114
115
116
117







-
+




-
+




-
+



- (int)errNo
{
	return errNo;
}

- (OFString*)path
{
	return path;
	OF_GETTER(path, NO)
}

- (OFString*)owner
{
	return owner;
	OF_GETTER(owner, NO)
}

- (OFString*)group
{
	return group;
	OF_GETTER(group, NO)
}
@end
#endif

Modified src/exceptions/OFConditionBroadcastFailedException.h from [8ae22e4efe] to [2f576e67d8].

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 OFConditionBroadcastFailedException: OFException
{
	OFCondition *condition;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param condition The condition which could not be broadcasted
 * \return A new condition broadcast failed exception
 */

Modified src/exceptions/OFConditionBroadcastFailedException.m from [9a6700f23c] to [77983dd397].

64
65
66
67
68
69
70
71

72
73
64
65
66
67
68
69
70

71
72
73







-
+


	    @"Broadcasting a condition of type %@ failed!", inClass];

	return description;
}

- (OFCondition*)condition
{
	return condition;
	OF_GETTER(condition, NO)
}
@end

Modified src/exceptions/OFConditionSignalFailedException.h from [0c71df12cb] to [26c6f07ab6].

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 OFConditionSignalFailedException: OFException
{
	OFCondition *condition;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param condition The condition which could not be signaled
 * \return A new condition signal failed exception
 */

Modified src/exceptions/OFConditionSignalFailedException.m from [81e4b38137] to [d759170854].

64
65
66
67
68
69
70
71

72
73
64
65
66
67
68
69
70

71
72
73







-
+


	    @"Signaling a condition of type %@ failed!", inClass];

	return description;
}

- (OFCondition*)condition
{
	return condition;
	OF_GETTER(condition, NO)
}
@end

Modified src/exceptions/OFConditionStillWaitingException.h from [b2a34efc77] to [8e4fa3434d].

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 OFConditionStillWaitingException: OFException
{
	OFCondition *condition;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param condition The condition for which is still being waited
 * \return A new condition still waiting exception
 */

Modified src/exceptions/OFConditionStillWaitingException.m from [05defc03ca] to [06d2bcc4b0].

65
66
67
68
69
70
71
72

73
74
65
66
67
68
69
70
71

72
73
74







-
+


	    @"thread was still waiting for it!", inClass];

	return description;
}

- (OFCondition*)condition
{
	return condition;
	OF_GETTER(condition, NO)
}
@end

Modified src/exceptions/OFConditionWaitFailedException.h from [291cf2ef15] to [f11d17f51e].

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 OFConditionWaitFailedException: OFException
{
	OFCondition *condition;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param condition The condition for which could not be waited
 * \return A new condition wait failed exception
 */

Modified src/exceptions/OFConditionWaitFailedException.m from [28d819a605] to [3cdc6fcdf0].

64
65
66
67
68
69
70
71

72
73
64
65
66
67
68
69
70

71
72
73







-
+


	    @"Waiting for a condition of type %@ failed!", inClass];

	return description;
}

- (OFCondition*)condition
{
	return condition;
	OF_GETTER(condition, NO)
}
@end

Modified src/exceptions/OFConnectionFailedException.h from [8389f7421c] to [1ba7298c8e].

26
27
28
29
30
31
32
33
34


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


33
34
35
36
37
38
39
40
41







-
-
+
+







	OFTCPSocket *socket;
	OFString    *host;
	uint16_t    port;
	int	    errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param socket The socket which could not connect

Modified src/exceptions/OFConnectionFailedException.m from [c9f175e2a4] to [96c7efdf5e].

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







-
+




-
+












	    @"established in class %@! " ERRFMT, host, port, inClass, ERRPARAM];

	return description;
}

- (OFTCPSocket*)socket
{
	return socket;
	OF_GETTER(socket, NO)
}

- (OFString*)host
{
	return host;
	OF_GETTER(host, NO)
}

- (uint16_t)port
{
	return port;
}

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

Modified src/exceptions/OFCopyFileFailedException.h from [971557495a] to [1914cc8f7e].

23
24
25
26
27
28
29
30
31


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


30
31
32
33
34
35
36
37
38







-
-
+
+







{
	OFString *sourcePath;
	OFString *destinationPath;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param source The original path
 * \param destination The new path

Modified src/exceptions/OFCopyFileFailedException.m from [af3294e8fa] to [e12978b387].

82
83
84
85
86
87
88
89

90
91
92
93
94

95
96
82
83
84
85
86
87
88

89
90
91
92
93

94
95
96







-
+




-
+


- (int)errNo
{
	return errNo;
}

- (OFString*)sourcePath
{
	return sourcePath;
	OF_GETTER(sourcePath, NO)
}

- (OFString*)destinationPath
{
	return destinationPath;
	OF_GETTER(destinationPath, NO)
}
@end

Modified src/exceptions/OFCreateDirectoryFailedException.h from [851b9ebd3d] to [b1e4762c7a].

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 OFCreateDirectoryFailedException: OFException
{
	OFString *path;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param path A string with the path of the directory which couldn't be created
 * \return A new create directory failed exception

Modified src/exceptions/OFCreateDirectoryFailedException.m from [c1a3e21ad9] to [ae344fd788].

77
78
79
80
81
82
83
84

85
86
77
78
79
80
81
82
83

84
85
86







-
+


- (int)errNo
{
	return errNo;
}

- (OFString*)path
{
	return path;
	OF_GETTER(path, NO)
}
@end

Modified src/exceptions/OFDeleteDirectoryFailedException.h from [40f48fbf57] to [c01a1cc456].

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 OFDeleteDirectoryFailedException: OFException
{
	OFString *path;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param path The path of the directory
 * \return A new delete directory failed exception

Modified src/exceptions/OFDeleteDirectoryFailedException.m from [51c696b033] to [6a79dd025d].

77
78
79
80
81
82
83
84

85
86
77
78
79
80
81
82
83

84
85
86







-
+


- (int)errNo
{
	return errNo;
}

- (OFString*)path
{
	return path;
	OF_GETTER(path, NO)
}
@end

Modified src/exceptions/OFDeleteFileFailedException.h from [3c6f730057] to [6a2aaca49b].

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 OFDeleteFileFailedException: OFException
{
	OFString *path;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param path The path of the file
 * \return A new delete file failed exception

Modified src/exceptions/OFDeleteFileFailedException.m from [98159ee061] to [52e4abd616].

77
78
79
80
81
82
83
84

85
86
77
78
79
80
81
82
83

84
85
86







-
+


- (int)errNo
{
	return errNo;
}

- (OFString*)path
{
	return path;
	OF_GETTER(path, NO)
}
@end

Modified src/exceptions/OFEnumerationMutationException.h from [6fb486dce2] to [711baf405e].

20
21
22
23
24
25
26




27
28
29
30
31
32
33
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37







+
+
+
+







 * \brief An exception indicating that a mutation was detected during
 *        enumeration.
 */
@interface OFEnumerationMutationException: OFException
{
	id object;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param object The object which was mutated during enumeration
 * \return A new enumeration mutation exception
 */
+ exceptionWithClass: (Class)class_

Modified src/exceptions/OFEnumerationMutationException.m from [092080e143] to [fc215b7c9c].

63
64
65
66
67
68
69
70

71
72
63
64
65
66
67
68
69

70
71
72







-
+


	    @"Object of class %@ was mutated during enumeration!", inClass];

	return description;
}

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

Modified src/exceptions/OFHTTPRequestFailedException.h from [c3823cc139] to [5339810eef].

25
26
27
28
29
30
31
32
33


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


32
33
34
35
36
37
38
39
40







-
-
+
+







@interface OFHTTPRequestFailedException: OFException
{
	OFHTTPRequest *HTTPRequest;
	OFHTTPRequestResult *result;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, assign) OFHTTPRequest *HTTPRequest;
@property (readonly, assign) OFHTTPRequestResult *result;
@property (readonly, retain, nonatomic) OFHTTPRequest *HTTPRequest;
@property (readonly, retain, nonatomic) OFHTTPRequestResult *result;
#endif

/**
 * \param class_ The class of the object which caused the exception
 * \param request The HTTP request which failed
 * \param result The result of the failed HTTP request
 * \return A new HTTP request failed exception

Modified src/exceptions/OFHTTPRequestFailedException.m from [47ee1ec6b0] to [0f9a027bed].

91
92
93
94
95
96
97
98

99
100
101
102
103

104
105
91
92
93
94
95
96
97

98
99
100
101
102

103
104
105







-
+




-
+


	objc_autoreleasePoolPop(pool);

	return description;
}

- (OFHTTPRequest*)HTTPRequest
{
	return HTTPRequest;
	OF_GETTER(HTTPRequest, NO)
}

- (OFHTTPRequestResult*)result
{
	return result;
	OF_GETTER(result, NO)
}
@end

Modified src/exceptions/OFHashAlreadyCalculatedException.h from [1a040137c7] to [515ff1319f].

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 OFHashAlreadyCalculatedException: OFException
{
	OFHash *hashObject;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, assign) OFHash *hashObject;
@property (readonly, retain, nonatomic) OFHash *hashObject;
#endif

/**
 * \param class_ The class of the object which caused the exception
 * \param hash The hash which has already been calculated
 * \return A new hash already calculated exception
 */

Modified src/exceptions/OFHashAlreadyCalculatedException.m from [ab8625fe9b] to [e7d621d895].

65
66
67
68
69
70
71
72

73
74
65
66
67
68
69
70
71

72
73
74







-
+


	    @"data can be added", inClass];

	return description;
}

- (OFHash*)hashObject
{
	return hashObject;
	OF_GETTER(hashObject, NO)
}
@end

Modified src/exceptions/OFLinkFailedException.h from [c4de1cadf3] to [21a1b60e3c].

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







-
-
+
+







{
	OFString *sourcePath;
	OFString *destinationPath;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param source The source for the link
 * \param destination The destination for the link

Modified src/exceptions/OFLinkFailedException.m from [e4101540ee] to [24670c67fb].

83
84
85
86
87
88
89
90

91
92
93
94
95

96
97
98
83
84
85
86
87
88
89

90
91
92
93
94

95
96
97
98







-
+




-
+



- (int)errNo
{
	return errNo;
}

- (OFString*)sourcePath
{
	return sourcePath;
	OF_GETTER(sourcePath, NO)
}

- (OFString*)destinationPath
{
	return destinationPath;
	OF_GETTER(destinationPath, NO)
}
@end
#endif

Modified src/exceptions/OFListenFailedException.h from [71b611bb46] to [e276f97633].

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







-
+







{
	OFTCPSocket *socket;
	int	    backLog;
	int	    errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param socket The socket which failed to listen

Modified src/exceptions/OFListenFailedException.m from [eb6c563353] to [a7f597b93d].

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







-
+












	    ERRFMT, inClass, backLog, ERRPARAM];

	return description;
}

- (OFTCPSocket*)socket
{
	return socket;
	OF_GETTER(socket, NO)
}

- (int)backLog
{
	return backLog;
}

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

Modified src/exceptions/OFMalformedXMLException.h from [bbe3426571] to [fba0179b9b].

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, assign) OFXMLParser *parser;
@property (readonly, retain, nonatomic) OFXMLParser *parser;
#endif

/**
 * \param parser The parser which encountered malformed XML
 * \return A new malformed XML exception
 */
+ exceptionWithClass: (Class)class_

Modified src/exceptions/OFMalformedXMLException.m from [b901fc7015] to [aacdd770af].

60
61
62
63
64
65
66
67

68
69
60
61
62
63
64
65
66

67
68
69







-
+


		description = @"A parser encountered malformed XML!";

	return description;
}

- (OFXMLParser*)parser
{
	return parser;
	OF_GETTER(parser, NO)
}
@end

Modified src/exceptions/OFMutexLockFailedException.h from [a3226afc0e] to [bbc20b35d1].

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 OFMutexLockFailedException: OFException
{
	OFMutex *mutex;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, assign) OFMutex *mutex;
@property (readonly, retain, nonatomic) OFMutex *mutex;
#endif

/**
 * \param class_ The class of the object which caused the exception
 * \param mutex The mutex which is could not be locked
 * \return A new mutex lock failed exception
 */

Modified src/exceptions/OFMutexLockFailedException.m from [0f471f5960] to [d6f9329fe7].

64
65
66
67
68
69
70
71

72
73
64
65
66
67
68
69
70

71
72
73







-
+


	    @"A mutex of class %@ could not be locked!", inClass];

	return description;
}

- (OFMutex*)mutex
{
	return mutex;
	OF_GETTER(mutex, NO)
}
@end

Modified src/exceptions/OFMutexStillLockedException.h from [b951acfe65] to [0ff3264cf0].

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 OFMutexStillLockedException: OFException
{
	OFMutex *mutex;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, assign) OFMutex *mutex;
@property (readonly, retain, nonatomic) OFMutex *mutex;
#endif

/**
 * \param class_ The class of the object which caused the exception
 * \param mutex The mutex which is still locked
 * \return A new mutex still locked exception
 */

Modified src/exceptions/OFMutexStillLockedException.m from [ff0c5d43a6] to [a03e941bbe].

65
66
67
68
69
70
71
72

73
74
65
66
67
68
69
70
71

72
73
74







-
+


	    @"was still locked!", inClass];

	return description;
}

- (OFMutex*)mutex
{
	return mutex;
	OF_GETTER(mutex, NO)
}
@end

Modified src/exceptions/OFMutexUnlockFailedException.h from [4c5bcb5519] to [5ec4027c40].

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 OFMutexUnlockFailedException: OFException
{
	OFMutex *mutex;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, assign) OFMutex *mutex;
@property (readonly, retain, nonatomic) OFMutex *mutex;
#endif

/**
 * \param class_ The class of the object which caused the exception
 * \param mutex The mutex which could not be unlocked
 * \return A new mutex unlock failed exception
 */

Modified src/exceptions/OFMutexUnlockFailedException.m from [c4a9463880] to [2d67d8d8e3].

64
65
66
67
68
69
70
71

72
73
64
65
66
67
68
69
70

71
72
73







-
+


	    @"A mutex of class %@ could not be unlocked!", inClass];

	return description;
}

- (OFMutex*)mutex
{
	return mutex;
	OF_GETTER(mutex, NO)
}
@end

Modified src/exceptions/OFNotConnectedException.h from [db39529c71] to [0e29467b60].

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 OFNotConnectedException: OFException
{
	OFStreamSocket *socket;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param socket The socket which is not connected
 * \return A new not connected exception
 */

Modified src/exceptions/OFNotConnectedException.m from [0c7a0604fc] to [f07b495d09].

64
65
66
67
68
69
70
71

72
73
64
65
66
67
68
69
70

71
72
73







-
+


	    @"The socket of type %@ is not connected or bound!", inClass];

	return description;
}

- (OFStreamSocket*)socket
{
	return socket;
	OF_GETTER(socket, NO)
}
@end

Modified src/exceptions/OFOpenFileFailedException.h from [c2f358c5e1] to [1e05aad332].

23
24
25
26
27
28
29
30
31


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


30
31
32
33
34
35
36
37
38







-
-
+
+







{
	OFString *path;
	OFString *mode;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param path A string with the path of the file tried to open
 * \param mode A string with the mode in which the file should have been opened

Modified src/exceptions/OFOpenFileFailedException.m from [496127f6be] to [748612e960].

82
83
84
85
86
87
88
89

90
91
92
93
94

95
96
82
83
84
85
86
87
88

89
90
91
92
93

94
95
96







-
+




-
+


- (int)errNo
{
	return errNo;
}

- (OFString*)path
{
	return path;
	OF_GETTER(path, NO)
}

- (OFString*)mode
{
	return mode;
	OF_GETTER(mode, NO)
}
@end

Modified src/exceptions/OFReadOrWriteFailedException.h from [0267e856f1] to [80dcbfd102].

26
27
28
29
30
31
32
33

34
35
36
37
38
39
40
26
27
28
29
30
31
32

33
34
35
36
37
38
39
40







-
+







	OFStream *stream;
	size_t	 requestedLength;
@public
	int	 errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param stream The stream which caused the read or write failed exception

Modified src/exceptions/OFReadOrWriteFailedException.m from [a9588f5d20] to [7f4654462a].

64
65
66
67
68
69
70
71

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

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







-
+












	[stream release];

	[super dealloc];
}

- (OFStream*)stream
{
	return stream;
	OF_GETTER(stream, NO)
}

- (size_t)requestedLength
{
	return requestedLength;
}

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

Modified src/exceptions/OFRenameFileFailedException.h from [adfa0f0d83] to [0d79c8bd46].

23
24
25
26
27
28
29
30
31


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


30
31
32
33
34
35
36
37
38







-
-
+
+







{
	OFString *sourcePath;
	OFString *destinationPath;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param source The original path
 * \param destination The new path

Modified src/exceptions/OFRenameFileFailedException.m from [af0a07bcb2] to [bcc9736c02].

82
83
84
85
86
87
88
89

90
91
92
93
94

95
96
82
83
84
85
86
87
88

89
90
91
92
93

94
95
96







-
+




-
+


- (int)errNo
{
	return errNo;
}

- (OFString*)sourcePath
{
	return sourcePath;
	OF_GETTER(sourcePath, NO)
}

- (OFString*)destinationPath
{
	return destinationPath;
	OF_GETTER(destinationPath, NO)
}
@end

Modified src/exceptions/OFSeekFailedException.h from [2fae4ba58f] to [db28bc5410].

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







-
+







	OFSeekableStream *stream;
	off_t		 offset;
	int		 whence;
	int		 errNo;
}

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

/**
 * \param stream The stream for which seeking failed

Modified src/exceptions/OFSeekFailedException.m from [9676a55c0c] to [93bf3837d6].

75
76
77
78
79
80
81
82

83
84
85
86
87
88
89
75
76
77
78
79
80
81

82
83
84
85
86
87
88
89







-
+







	    @"Seeking failed in class %@! " ERRFMT, inClass, ERRPARAM];

	return description;
}

- (OFSeekableStream*)stream
{
	return stream;
	OF_GETTER(stream, NO)
}

- (off_t)offset
{
	return offset;
}

Modified src/exceptions/OFSetOptionFailedException.h from [f82984557f] to [f511e39b74].

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, assign) OFStream *stream;
@property (readonly, retain, nonatomic) OFStream *stream;
#endif

/**
 * \param stream The stream for which the option could not be set
 * \return A new set option failed exception
 */
+ exceptionWithClass: (Class)class_

Modified src/exceptions/OFSetOptionFailedException.m from [aa24331688] to [f34ccd222c].

64
65
66
67
68
69
70
71

72
73
64
65
66
67
68
69
70

71
72
73







-
+


	    @"Setting an option in class %@ failed!", inClass];

	return description;
}

- (OFStream*)stream
{
	return stream;
	OF_GETTER(stream, NO)
}
@end

Modified src/exceptions/OFSymlinkFailedException.h from [fd2128c967] to [5ed68fbba4].

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







-
-
+
+







{
	OFString *sourcePath;
	OFString *destinationPath;
	int errNo;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param source The source for the symlink
 * \param destination The destination for the symlink

Modified src/exceptions/OFSymlinkFailedException.m from [214ce42612] to [f6b7c833ab].

83
84
85
86
87
88
89
90

91
92
93
94
95

96
97
98
83
84
85
86
87
88
89

90
91
92
93
94

95
96
97
98







-
+




-
+



- (int)errNo
{
	return errNo;
}

- (OFString*)sourcePath
{
	return sourcePath;
	OF_GETTER(sourcePath, NO)
}

- (OFString*)destinationPath
{
	return destinationPath;
	OF_GETTER(destinationPath, NO)
}
@end
#endif

Modified src/exceptions/OFThreadJoinFailedException.h from [861467768a] to [049bf7b544].

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 OFThreadJoinFailedException: OFException
{
	OFThread *thread;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param thread The thread which could not be joined
 * \return A new thread join failed exception
 */

Modified src/exceptions/OFThreadJoinFailedException.m from [b07b6bac14] to [e93325ff06].

65
66
67
68
69
70
71
72

73
74
65
66
67
68
69
70
71

72
73
74







-
+


	    @"already waits for the thread to join.", inClass];

	return description;
}

- (OFThread*)thread
{
	return thread;
	OF_GETTER(thread, NO)
}
@end

Modified src/exceptions/OFThreadStartFailedException.h from [50d3d22fd2] to [b40a0d50e7].

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 OFThreadStartFailedException: OFException
{
	OFThread *thread;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param thread The thread which could not be started
 * \return An initialized thread start failed exception
 */

Modified src/exceptions/OFThreadStartFailedException.m from [be16f87910] to [ec03cdbdb4].

64
65
66
67
68
69
70
71

72
73
64
65
66
67
68
69
70

71
72
73







-
+


	    @"Starting a thread of class %@ failed!", inClass];

	return description;
}

- (OFThread*)thread
{
	return thread;
	OF_GETTER(thread, NO)
}
@end

Modified src/exceptions/OFThreadStillRunningException.h from [a1185cb804] to [aa0d9c74d9].

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 OFThreadStillRunningException: OFException
{
	OFThread *thread;
}

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

/**
 * \param class_ The class of the object which caused the exception
 * \param thread The thread which is still running
 * \return A new thread still running exception
 */

Modified src/exceptions/OFThreadStillRunningException.m from [71badbba8d] to [8cc2391325].

65
66
67
68
69
70
71
72

73
74
65
66
67
68
69
70
71

72
73
74







-
+


	    @"was still running!", inClass];

	return description;
}

- (OFThread*)thread
{
	return thread;
	OF_GETTER(thread, NO)
}
@end

Modified src/exceptions/OFUnboundNamespaceException.h from [4910d9f900] to [16f58d7cd7].

22
23
24
25
26
27
28
29
30


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


29
30
31
32
33
34
35
36
37







-
-
+
+







@interface OFUnboundNamespaceException: OFException
{
	OFString *ns;
	OFString *prefix;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, assign, getter=namespace) OFString *ns;
@property (readonly, assign) OFString *prefix;
@property (readonly, copy, nonatomic, getter=namespace) OFString *ns;
@property (readonly, copy, nonatomic) OFString *prefix;
#endif

/**
 * \param class_ The class of the object which caused the exception
 * \param ns The namespace which is unbound
 * \return A new unbound namespace exception
 */

Modified src/exceptions/OFUnboundNamespaceException.m from [dec99405b9] to [b6bf1c09c7].

96
97
98
99
100
101
102
103

104
105
106
107
108

109
110
96
97
98
99
100
101
102

103
104
105
106
107

108
109
110







-
+




-
+


		    prefix, inClass];

	return description;
}

- (OFString*)namespace
{
	return ns;
	OF_GETTER(ns, NO)
}

- (OFString*)prefix
{
	return prefix;
	OF_GETTER(prefix, NO)
}
@end

Modified src/exceptions/OFUnsupportedProtocolException.h from [0d6f5d60f2] to [3917168b18].

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, assign) OFURL *URL;
@property (readonly, retain, nonatomic) OFURL *URL;
#endif

/**
 * \param class_ The class of the object which caused the exception
 * \param url The URL whose protocol is unsupported
 * \return A new unsupported protocol exception
 */

Modified src/exceptions/OFUnsupportedProtocolException.m from [84b4e15386] to [a5d3f9d2cc].

70
71
72
73
74
75
76
77

78
79
70
71
72
73
74
75
76

77
78
79







-
+


	    inClass];

	return description;
}

- (OFURL*)URL
{
	return URL;
	OF_GETTER(URL, NO)
}
@end

Modified src/exceptions/OFUnsupportedVersionException.h from [16fdf7d893] to [8d9f871b1a].

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, assign) OFString *version;
@property (readonly, copy, nonatomic) OFString *version;
#endif

/**
 * \param class_ The class of the object which caused the exception
 * \param version The version which is unsupported
 * \return A new unsupported version exception
 */

Modified src/exceptions/OFUnsupportedVersionException.m from [3fa276f5bb] to [c1cbaf7fe4].

69
70
71
72
73
74
75
76

77
78
69
70
71
72
73
74
75

76
77
78







-
+


	    @"%@", version, inClass];

	return description;
}

- (OFString*)version
{
	return version;
	OF_GETTER(version, NO)
}
@end