Package app.akiles.sdk
Enum Class ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCode>
,Constable
Akiles error codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll communication methods (Internet, Bluetooth) have failed.The device is not within Bluetooth range, or is turned off.The phone has bluetooth turned off, the user should enable it.The phone has no bluetooth supportThe phone has bluetooth support, but the user hasn't granted permission for it to the app.The phone has bluetooth support, but the user has permanently denied permission for it to the app.Operation has been canceled.Something went wrong internally.Phone has internet access and could reach the Akiles server, but the Akiles server could not reach the device because it's either offline or turned off.The organization administrator has enabled geolocation check for this device, and the phone's location services indicate it's outside the maximum radius.Phone has no internet access.The organization administrator has configured this device so it doesn't accept actions via the internet communication method.Invalid parameter.The session token is invalid.The phone has location turned off, the user should enable it.The phone failed to acquire a GNSS fix in reasonable time, probably because it has bad coverage (it's indoors, etc)The phone has no location supportThe phone has location support, but the user hasn't granted permission for it to the app.The phone has location support, but the user has permanently denied permission for it to the app.This NFC card is not compatible with Akiles devices.This phone has no NFC support.NFC read error.The current session does not have permission to do the requested action on the device.Operation timed out. -
Method Summary
-
Enum Constant Details
-
INTERNAL
Something went wrong internally. This should never happen, if you see it you can contact Akiles for help. -
INVALID_PARAM
Invalid parameter. The description contains extra information. -
INVALID_SESSION
The session token is invalid. Possible causes:- The session token has an incorrect format.
- The organization administrator has uninstalled the application.
- The member has been deleted.
- The member token has been deleted.
-
PERMISSION_DENIED
The current session does not have permission to do the requested action on the device. -
ALL_COMM_METHODS_FAILED
All communication methods (Internet, Bluetooth) have failed.Check the errors reported in
onInternetError
andonBluetoothError
for information on why each method failed. -
INTERNET_NOT_AVAILABLE
Phone has no internet access. -
INTERNET_DEVICE_OFFLINE
Phone has internet access and could reach the Akiles server, but the Akiles server could not reach the device because it's either offline or turned off. -
INTERNET_LOCATION_OUT_OF_RADIUS
The organization administrator has enabled geolocation check for this device, and the phone's location services indicate it's outside the maximum radius. This check only applies to actions via internet, since being able to do actions via Bluetooth already guarantees you're near the device without need for geolocation checking. -
INTERNET_NOT_PERMITTED
The organization administrator has configured this device so it doesn't accept actions via the internet communication method. Other methods such as Bluetooth, PINs, cards, NFC might work. -
BLUETOOTH_DEVICE_NOT_FOUND
The device is not within Bluetooth range, or is turned off. -
BLUETOOTH_DISABLED
The phone has bluetooth turned off, the user should enable it. -
BLUETOOTH_NOT_AVAILABLE
The phone has no bluetooth support -
BLUETOOTH_PERMISSION_NOT_GRANTED
The phone has bluetooth support, but the user hasn't granted permission for it to the app. -
BLUETOOTH_PERMISSION_NOT_GRANTED_PERMANENTLY
The phone has bluetooth support, but the user has permanently denied permission for it to the app. You should show some UI directing the user to the "app info" section to grant it. -
TIMEOUT
Operation timed out. -
CANCELED
Operation has been canceled. -
NFC_READ_ERROR
NFC read error. The user either moved the card away too soon, or the card is not compatible. -
NFC_CARD_NOT_COMPATIBLE
This NFC card is not compatible with Akiles devices. -
NFC_NOT_AVAILABLE
This phone has no NFC support. -
LOCATION_DISABLED
The phone has location turned off, the user should enable it. -
LOCATION_NOT_AVAILABLE
The phone has no location support -
LOCATION_PERMISSION_NOT_GRANTED
The phone has location support, but the user hasn't granted permission for it to the app. -
LOCATION_PERMISSION_NOT_GRANTED_PERMANENTLY
The phone has location support, but the user has permanently denied permission for it to the app. You should show some UI directing the user to the "app info" section to grant it. -
LOCATION_FAILED
The phone failed to acquire a GNSS fix in reasonable time, probably because it has bad coverage (it's indoors, etc)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-