21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
OF_ASSUME_NONNULL_BEGIN
@class OFArray OF_GENERIC(ObjectType);
@class OFMutableArray OF_GENERIC(ObjectType);
@class OFString;
#define OF_BACKTRACE_SIZE 16
#if defined(OF_WINDOWS) && defined(OF_HAVE_SOCKETS)
# ifndef EADDRINUSE
# define EADDRINUSE WSAEADDRINUSE
# endif
# ifndef EADDRNOTAVAIL
# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
|
|
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
OF_ASSUME_NONNULL_BEGIN
@class OFArray OF_GENERIC(ObjectType);
@class OFMutableArray OF_GENERIC(ObjectType);
@class OFString;
#define OFBacktraceSize 16
#if defined(OF_WINDOWS) && defined(OF_HAVE_SOCKETS)
# ifndef EADDRINUSE
# define EADDRINUSE WSAEADDRINUSE
# endif
# ifndef EADDRNOTAVAIL
# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
|
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
* @brief The base class for all exceptions in ObjFW
*
* The OFException class is the base class for all exceptions in ObjFW, except
* the OFAllocFailedException.
*/
@interface OFException: OFObject
{
void *_backtrace[OF_BACKTRACE_SIZE];
}
/**
* @brief Creates a new, autoreleased exception.
*
* @return A new, autoreleased exception
*/
|
|
|
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
* @brief The base class for all exceptions in ObjFW
*
* The OFException class is the base class for all exceptions in ObjFW, except
* the OFAllocFailedException.
*/
@interface OFException: OFObject
{
void *_backtrace[OFBacktraceSize];
}
/**
* @brief Creates a new, autoreleased exception.
*
* @return A new, autoreleased exception
*/
|
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
*/
- (nullable OFArray OF_GENERIC(OFString *) *)backtrace;
@end
#ifdef __cplusplus
extern "C" {
#endif
extern OFString *of_strerror(int errNo);
#ifdef OF_WINDOWS
extern OFString *of_windows_status_to_string(LSTATUS status);
#endif
#ifdef __cplusplus
}
#endif
OF_ASSUME_NONNULL_END
|
|
|
|
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
*/
- (nullable OFArray OF_GENERIC(OFString *) *)backtrace;
@end
#ifdef __cplusplus
extern "C" {
#endif
extern OFString *OFStrError(int errNo);
#ifdef OF_WINDOWS
extern OFString *OFWindowsStatusToString(LSTATUS status);
#endif
#ifdef __cplusplus
}
#endif
OF_ASSUME_NONNULL_END
|