Enum Pairing.Error

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Pairing.Error>
    Enclosing class:
    Pairing

    public static enum Pairing.Error
    extends java.lang.Enum<Pairing.Error>
    Error description for Pairing.
    • Enum Constant Detail

      • SEAT_PAIRING_ERROR_UNKNOWN

        public static final Pairing.Error SEAT_PAIRING_ERROR_UNKNOWN
        The request failed due to an unknown error.
      • SEAT_PAIRING_ERROR_DEVICE_ALREADY_PAIRED

        public static final Pairing.Error SEAT_PAIRING_ERROR_DEVICE_ALREADY_PAIRED
        The request failed due to the seatback monitor being already paired. Please unpair first, then pair.
      • SEAT_PAIRING_ERROR_INTERNAL

        public static final Pairing.Error SEAT_PAIRING_ERROR_INTERNAL
        The request failed due to an unknown internal error.
      • SEAT_PARING_ERROR_BAD_RESPONSE

        public static final Pairing.Error SEAT_PARING_ERROR_BAD_RESPONSE
        The request failed due to an unexpected response from server.
      • SEAT_PAIRING_ERROR_SERVICE_NOT_FOUND

        public static final Pairing.Error SEAT_PAIRING_ERROR_SERVICE_NOT_FOUND
        The request failed due to the service not being avalable.
      • SEAT_UNPAIRING_ERROR_UNKNOWN

        public static final Pairing.Error SEAT_UNPAIRING_ERROR_UNKNOWN
        The request failed due to an unknown error.
      • SEAT_UNPAIRING_ERROR_NOT_PAIRED

        public static final Pairing.Error SEAT_UNPAIRING_ERROR_NOT_PAIRED
        The request failed due to the seatback monitor not being paired.
      • SEAT_UNPAIRING_ERROR_INTERNAL_ERROR

        public static final Pairing.Error SEAT_UNPAIRING_ERROR_INTERNAL_ERROR
        The request failed due to an unknown internal error.
      • SEAT_UNPAIRING_ERROR_BAD_RESPONSE

        public static final Pairing.Error SEAT_UNPAIRING_ERROR_BAD_RESPONSE
        The request failed due to the server returning an unexpected response.
      • SEAT_UNPAIRING_ERROR_SERVICE_NOT_FOUND

        public static final Pairing.Error SEAT_UNPAIRING_ERROR_SERVICE_NOT_FOUND
        The request failed due to the service not being avalable.
      • ERROR_ACCESS_FORBIDDEN

        public static final Pairing.Error ERROR_ACCESS_FORBIDDEN
        The request failed due to not authorized to access the service.
    • Method Detail

      • values

        public static Pairing.Error[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Pairing.Error c : Pairing.Error.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Pairing.Error valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getErrorMessage

        public static java.lang.String getErrorMessage​(Pairing.Error error)
        Gets details of the error.
        Parameters:
        error - Pairing.Error Error object.
        Returns:
        String message with error details.
      • getSeatPairingErrorById

        public static Pairing.Error getSeatPairingErrorById​(int id)
        Gets the error by ID.
      • getErrorId

        public int getErrorId()
        Gets the error by ID.