MBMResourceRequestError


@interface MBMResourceRequestError : NSObject

The structure defines the information about errors that may occur during a resource request.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithReason:(MBMRequestErrorType)reason
                                   message:(nonnull NSString *)message;

    Swift

    init(reason: RequestErrorType, message: String)
  • The error type.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MBMRequestErrorType reason;

    Swift

    var reason: RequestErrorType { get }
  • The description of an error.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSString *message;

    Swift

    var message: String { get }