class DJIFlightHubError
class DJIFlightHubError extends DJIError
Package: dji.common.error Inherits From: DJIError
Description:
DJI SDK FlightHub Error.
Class Members:
Members
final SIGNATURE_INVALID
static final DJIFlightHubError SIGNATURE_INVALID = new DJIFlightHubError("Invalid signature." )
Description:
Server rejected the request because the signature is invalid.
final NO_RIGHT_TO_ACCESS
static final DJIFlightHubError NO_RIGHT_TO_ACCESS = new DJIFlightHubError("You have no right to access the data." )
Description:
Server rejected the request because the user does not have the permission.
final PARAMETERS_INVALID
static final DJIFlightHubError PARAMETERS_INVALID = new DJIFlightHubError("Invalid parameter(s)." )
Description:
Invalid parameter(s).
final USER_NOT_FOUND_IN_USER_CENTER
static final DJIFlightHubError USER_NOT_FOUND_IN_USER_CENTER = new DJIFlightHubError("The account information is not found." )
Description:
The account information is not found.
final AUTHORIZATION_EXPIRED
static final DJIFlightHubError AUTHORIZATION_EXPIRED = new DJIFlightHubError("Authorization information has expired. Please authorize again." )
Description:
Authorization information has expired. Please authorize again.
final USER_NOT_FOUND_IN_FLIGHT_HUB
static final DJIFlightHubError USER_NOT_FOUND_IN_FLIGHT_HUB = new DJIFlightHubError("User not found in FlightHub." )
Description:
User not found in DJI FlightHub system.
final SERVICE_PACKAGE_EXPIRED
static final DJIFlightHubError SERVICE_PACKAGE_EXPIRED = new DJIFlightHubError("Your service package has expired." )
Description:
The service package has been expired.
final SERVICE_PACKAGE_LIMITATION_REACHED
static final DJIFlightHubError SERVICE_PACKAGE_LIMITATION_REACHED = new DJIFlightHubError("Your service package has reached the limit of device number. Please check if your service package has expired." )
Description:
The service package has reached the limit of device numbers.
final NO_SDK_PERMISSION_FOR_SERVICE_PACKAGE
static final DJIFlightHubError NO_SDK_PERMISSION_FOR_SERVICE_PACKAGE = new DJIFlightHubError("Service package does not have permission to access SDK service." )
Description:
The service package does not have permission to access SDK service.
final NO_TEAM_FOUND
static final DJIFlightHubError NO_TEAM_FOUND = new DJIFlightHubError("No team found." )
Description:
No team found.
final NO_AIRCRAFT_FOUND
static final DJIFlightHubError NO_AIRCRAFT_FOUND = new DJIFlightHubError("No aircraft found." )
Description:
No aircraft found.
final AIRCRAFT_ALREADY_BOUND_IN_TEAM_CHOSEN
static final DJIFlightHubError AIRCRAFT_ALREADY_BOUND_IN_TEAM_CHOSEN = new DJIFlightHubError("The aircraft has already been bound in chosen team." )
Description:
The aircraft has already been bound in the chosen team.
final NO_RECORD_FOUND
static final DJIFlightHubError NO_RECORD_FOUND = new DJIFlightHubError("No record found." )
Description:
No record found.
final NOT_LOGGED_IN
static final DJIFlightHubError NOT_LOGGED_IN = new DJIFlightHubError("You are not logged in." )
Description:
No user is logged in.
final AIRCRAFT_SERIAL_NUMBER_IS_NOT_AVAILABLE
static final DJIFlightHubError AIRCRAFT_SERIAL_NUMBER_IS_NOT_AVAILABLE = new DJIFlightHubError("Could not get serial number." )
Description:
Aircraft's serial number is not available.
final BOUND_DEVICE_LIMITATION_REACHED
static final DJIFlightHubError BOUND_DEVICE_LIMITATION_REACHED = new DJIFlightHubError("Bound device number has reached the limit of your service package." )
Description:
Bound device number has reached the limit of your service package.
final AIRCRAFT_ALREADY_BOUND_IN_OTHER_TEAM
static final DJIFlightHubError AIRCRAFT_ALREADY_BOUND_IN_OTHER_TEAM = new DJIFlightHubError("The aircraft has already been bound in the other team. Please unbind it first." )
Description:
The aircraft has already been bound in the other team. Please unbind it first.
Inherited Methods:
dji.common.error.DJIError
method
method getDJIError
static DJIError getDJIError (int errorCode)
Description:
Returns the specific error in the DJIFlightHubError
according to the error code.
Return:
static DJIError An NSError object initialized with errorCode. If the errorCode was 0, returns nil.
method getDJIError
static DJIError getDJIError (int errorCode)
Description:
Get DJIUTMISSError.
int errorCode An int value of error code.
Return:
method getDescription
Description:
Returns the description of the error code.
Return:
String The description of the error code.
method setDescription
void setDescription (String desc)
Description:
Sets the description for the error code.
String desc Description string.