16#import "OFException.h"
18#ifndef OF_HAVE_SOCKETS
19# error No sockets available!
24OF_ASSUME_NONNULL_BEGIN
43@property (readonly, nonatomic)
id socket;
48@property (readonly, nonatomic)
int errNo;
57+ (instancetype)exceptionWithSocket: (
id)socket errNo: (
int)errNo;
59+ (instancetype)exception OF_UNAVAILABLE;
68- (instancetype)initWithSocket: (
id)socket
69 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
71- (instancetype)init OF_UNAVAILABLE;
An exception indicating that a connection could not be established.
Definition OFConnectSocketFailedException.h:34
The base class for all exceptions in ObjFW.
Definition OFException.h:151