MBXHttpRequestError.h 909 B

123456789101112131415161718192021222324252627
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCommon/MBXHttpRequestErrorType.h>
  4. /** Record which contains detailed information about HTTP error happened during request/download call. */
  5. NS_SWIFT_NAME(HttpRequestError)
  6. __attribute__((visibility ("default")))
  7. @interface MBXHttpRequestError : NSObject
  8. // This class provides custom init which should be called
  9. - (nonnull instancetype)init NS_UNAVAILABLE;
  10. // This class provides custom init which should be called
  11. + (nonnull instancetype)new NS_UNAVAILABLE;
  12. - (nonnull instancetype)initWithType:(MBXHttpRequestErrorType)type
  13. message:(nonnull NSString *)message;
  14. /** Error type. */
  15. @property (nonatomic, readonly) MBXHttpRequestErrorType type;
  16. /** Detailed description of the error. */
  17. @property (nonatomic, readonly, nonnull, copy) NSString *message;
  18. @end