16 #import "OFException.h"
18 #ifndef OF_HAVE_SOCKETS
19 # error No sockets available!
24 OF_ASSUME_NONNULL_BEGIN
42 @property (readonly, nonatomic)
id socket;
47 @property (readonly, nonatomic)
int errNo;
56 + (instancetype)exceptionWithSocket: (
id)socket errNo: (
int)errNo;
58 + (instancetype)exception OF_UNAVAILABLE;
67 - (instancetype)initWithSocket: (
id)socket
68 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
70 - (instancetype)init OF_UNAVAILABLE;
An exception indicating that binding a socket failed.
Definition: OFBindSocketFailedException.h:33
The base class for all exceptions in ObjFW.
Definition: OFException.h:151