NSError(DJISDK)

@interface NSError (DJISDK)

NSError’s DJISDK category. It contains methods to create custom NSErrors.

  • Get DJISDKError

    Declaration

    Objective-C

    + (instancetype _Nullable)DJISDKErrorForCode:(NSInteger)errorCode;

    Parameters

    errorCode

    errorCode for DJISDKError.

  • Get DJISDKCameraError

    Declaration

    Objective-C

    + (instancetype _Nullable)DJISDKCameraErrorForCode:(NSInteger)errorCode;

    Parameters

    errorCode

    errorCode for DJISDKCameraError.

  • Get DJISDKFlightControllerError

    Declaration

    Objective-C

    + (instancetype _Nullable)DJISDKFlightControllerErrorForCode:
        (NSInteger)errorCode;

    Parameters

    errorCode

    errorCode for DJISDKFlightControllerError.

  • Get DJISDKMissionError

    Declaration

    Objective-C

    + (instancetype _Nullable)DJISDKMissionErrorForCode:(NSInteger)errorCode;

    Parameters

    errorCode

    errorCode for DJISDKMissionError.

  • Get DJISDKRegistrationError

    Declaration

    Objective-C

    + (instancetype _Nullable)DJISDKRegistrationErrorForCode:
        (DJISDKRegistrationError)errorCode;

    Parameters

    errorCode

    errorCode for DJISDKRegistrationError.

  • Get DJISDKGEOError

    Declaration

    Objective-C

    + (instancetype _Nullable)DJISDKGEOErrorForCode:(DJISDKGEOError)errorCode;

    Parameters

    errorCode

    errorCode for DJISDKGEOError

  • Get DJISDKError

    Declaration

    Objective-C

    + (instancetype _Nullable)DJISDKErrorForCode:(NSInteger)errorCode
                                          domain:(NSString *_Nonnull)errorDomain
                                            desc:(const NSString *_Nonnull)desc;

    Parameters

    errorCode

    Error code for DJISDKError.

    errorDomain

    Domain for DJISDKError.

    desc

    Description for DJISDKError.