DBRequestClientError
Objective-C
@interface DBRequestClientError : NSObject
Swift
class DBRequestClientError : NSObject
Client side request error.
Contains relevant information regarding a failed network request. Initialized in the event of a client-side error, like an invalid url host, or making a request when not connected to the internet.
-
The client-side
NSErrorobject returned from the failed response.Declaration
Objective-C
@property (nonatomic, readonly) NSError *_Nonnull nsError;Swift
var nsError: Error { get } -
DBRequestClientErrorfull constructor.An example of such an error might be if you attempt to make a request and are not connected to the internet.
Declaration
Objective-C
- (nonnull instancetype)init:(nonnull NSError *)nsError;Swift
init(_ nsError: Error)Parameters
nsErrorThe client-side
NSErrorobject returned from the failed response.Return Value
An initialized
DBRequestClientErrorinstance. -
Description method.
Declaration
Objective-C
- (nonnull NSString *)description;Swift
func description() -> StringReturn Value
A human-readable representation of the current
DBRequestClientErrorobject.
View on GitHub
DBRequestClientError Class Reference