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