Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
app.akiles.sdk.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
Akiles error codes.
  • Enum Constant Details

    • INTERNAL

      public static final ErrorCode INTERNAL
      Something went wrong internally. This should never happen, if you see it you can contact Akiles for help.
    • INVALID_PARAM

      public static final ErrorCode INVALID_PARAM
      Invalid parameter. The description contains extra information.
    • INVALID_SESSION

      public static final ErrorCode 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

      public static final ErrorCode PERMISSION_DENIED
      The current session does not have permission to do the requested action on the device.
    • ALL_COMM_METHODS_FAILED

      public static final ErrorCode ALL_COMM_METHODS_FAILED
      All communication methods (Internet, Bluetooth) have failed.

      Check the errors reported in onInternetError and onBluetoothError for information on why each method failed.

    • INTERNET_NOT_AVAILABLE

      public static final ErrorCode INTERNET_NOT_AVAILABLE
      Phone has no internet access.
    • INTERNET_DEVICE_OFFLINE

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static final ErrorCode BLUETOOTH_DEVICE_NOT_FOUND
      The device is not within Bluetooth range, or is turned off.
    • BLUETOOTH_DISABLED

      public static final ErrorCode BLUETOOTH_DISABLED
      The phone has bluetooth turned off, the user should enable it.
    • BLUETOOTH_NOT_AVAILABLE

      public static final ErrorCode BLUETOOTH_NOT_AVAILABLE
      The phone has no bluetooth support
    • BLUETOOTH_PERMISSION_NOT_GRANTED

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static final ErrorCode TIMEOUT
      Operation timed out.
    • CANCELED

      public static final ErrorCode CANCELED
      Operation has been canceled.
    • NFC_READ_ERROR

      public static final ErrorCode 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

      public static final ErrorCode NFC_CARD_NOT_COMPATIBLE
      This NFC card is not compatible with Akiles devices.
    • NFC_NOT_AVAILABLE

      public static final ErrorCode NFC_NOT_AVAILABLE
      This phone has no NFC support.
    • LOCATION_DISABLED

      public static final ErrorCode LOCATION_DISABLED
      The phone has location turned off, the user should enable it.
    • LOCATION_NOT_AVAILABLE

      public static final ErrorCode LOCATION_NOT_AVAILABLE
      The phone has no location support
    • LOCATION_PERMISSION_NOT_GRANTED

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static final ErrorCode 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

      public static ErrorCode[] 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

      public static ErrorCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null