20 #import "OFException.h"
22 #ifndef OF_HAVE_SOCKETS
23 # error No sockets available!
28 OF_ASSUME_NONNULL_BEGIN
47 @property (readonly, nonatomic)
id socket;
52 @property (readonly, nonatomic)
int errNo;
61 + (instancetype)exceptionWithSocket: (
id)socket errNo: (
int)errNo;
63 + (instancetype)exception OF_UNAVAILABLE;
72 - (instancetype)initWithSocket: (
id)socket
73 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
75 - (instancetype)init OF_UNAVAILABLE;
An exception indicating that a connection could not be established.
Definition: OFConnectSocketFailedException.h:38
The base class for all exceptions in ObjFW.
Definition: OFException.h:155