17 #import "OFException.h" 19 #ifndef OF_HAVE_SOCKETS 20 # error No sockets available! 23 OF_ASSUME_NONNULL_BEGIN
40 @property (readonly, nonatomic)
id socket;
45 @property (readonly, nonatomic)
int errNo;
56 + (instancetype)exceptionWithSocket: (
id)socket
59 -
init OF_UNAVAILABLE;
68 - initWithSocket: (
id)socket
69 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
int errNo
Definition: OFAcceptFailedException.h:45
id init()
Initializes an already allocated object.
Definition: OFObject.m:488
The base class for all exceptions in ObjFW.
Definition: OFException.h:143
id socket
Definition: OFAcceptFailedException.h:40
instancetype exception()
Creates a new, autoreleased exception.
Definition: OFException.m:250
An exception indicating that accepting a connection failed.
Definition: OFAcceptFailedException.h:31