DBRequestClientError

@interface 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 NSError object returned from the failed response.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSError *_Nonnull nsError;

    Swift

    var nsError: Error { get }
  • DBRequestClientError full 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

    nsError

    The client-side NSError object returned from the failed response.

    Return Value

    An initialized DBRequestClientError instance.

  • Description method.

    Declaration

    Objective-C

    - (nonnull NSString *)description;

    Swift

    func description() -> String

    Return Value

    A human-readable representation of the current DBRequestClientError object.