MBNNRouterError.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxNavigationNative/MBNNRouterErrorType.h>
  4. NS_SWIFT_NAME(RouterError)
  5. __attribute__((visibility ("default")))
  6. @interface MBNNRouterError : NSObject
  7. // This class provides custom init which should be called
  8. - (nonnull instancetype)init NS_UNAVAILABLE;
  9. // This class provides custom init which should be called
  10. + (nonnull instancetype)new NS_UNAVAILABLE;
  11. - (nonnull instancetype)initWithMessage:(nonnull NSString *)message
  12. code:(uint32_t)code
  13. type:(MBNNRouterErrorType)type
  14. requestId:(uint64_t)requestId;
  15. /** Error message */
  16. @property (nonatomic, readonly, nonnull, copy) NSString *message;
  17. /** Error code */
  18. @property (nonatomic, readonly) uint32_t code;
  19. /** Error type */
  20. @property (nonatomic, readonly) MBNNRouterErrorType type;
  21. /** Request ID */
  22. @property (nonatomic, readonly) uint64_t requestId;
  23. @end