20 #import "OFException.h"
22 #ifndef OF_HAVE_SOCKETS
23 # error No sockets available!
28 OF_ASSUME_NONNULL_BEGIN
46 @property (readonly, nonatomic)
id socket;
51 @property (readonly, nonatomic)
int errNo;
60 + (instancetype)exceptionWithSocket: (
id)socket errNo: (
int)errNo;
62 + (instancetype)exception OF_UNAVAILABLE;
71 - (instancetype)initWithSocket: (
id)socket
72 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
74 - (instancetype)init OF_UNAVAILABLE;
An exception indicating that binding a socket failed.
Definition: OFBindSocketFailedException.h:37
The base class for all exceptions in ObjFW.
Definition: OFException.h:155