16 #import "OFException.h"
18 #ifndef OF_HAVE_SOCKETS
19 # error No sockets available!
22 OF_ASSUME_NONNULL_BEGIN
39 @property (readonly, nonatomic)
id socket;
44 @property (readonly, nonatomic)
int errNo;
46 + (instancetype)exception OF_UNAVAILABLE;
55 + (instancetype)exceptionWithSocket: (
id)socket errNo: (
int)errNo;
57 - (instancetype)init OF_UNAVAILABLE;
66 - (instancetype)initWithSocket: (
id)socket
67 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
An exception indicating that accepting a connection failed.
Definition: OFAcceptFailedException.h:31
The base class for all exceptions in ObjFW.
Definition: OFException.h:147