MBXDownloadError.h 872 B

123456789101112131415161718192021222324252627
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCommon/MBXDownloadErrorCode.h>
  4. /** Structure to hold error information about download request. */
  5. NS_SWIFT_NAME(DownloadError)
  6. __attribute__((visibility ("default")))
  7. @interface MBXDownloadError : 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)initWithCode:(MBXDownloadErrorCode)code
  13. message:(nonnull NSString *)message;
  14. /** Download error code. */
  15. @property (nonatomic, readonly) MBXDownloadErrorCode code;
  16. /** Human readable string describing an error. */
  17. @property (nonatomic, readonly, nonnull, copy) NSString *message;
  18. @end