Enum InFlight.Error

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

    public static enum InFlight.Error
    extends java.lang.Enum<InFlight.Error>
    • Enum Constant Detail

      • ERROR_SYSTEM_VERSION_NOT_SUPPORTED

        public static final InFlight.Error ERROR_SYSTEM_VERSION_NOT_SUPPORTED
        Android Platform OS version not supported.
      • ERROR_SYSTEM_DATE_INVALID

        public static final InFlight.Error ERROR_SYSTEM_DATE_INVALID
        Device Date seems to be invalid.
      • ERROR_SDK_VERSION_INCOMPATIBLE

        public static final InFlight.Error ERROR_SDK_VERSION_INCOMPATIBLE
        SDK version is incompatible with the service version.
      • ERROR_SERVICE_INTERNAL

        public static final InFlight.Error ERROR_SERVICE_INTERNAL
        Service side internal error.
      • ERROR_SERVICE_UNAVAILABLE

        public static final InFlight.Error ERROR_SERVICE_UNAVAILABLE
    • Method Detail

      • values

        public static InFlight.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 (InFlight.Error c : InFlight.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 InFlight.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​(InFlight.Error error)
        Get details of the error.
        Parameters:
        error - InFlight.Error - Error object.
        Returns:
        A String message with error details.
      • getInFlightErrorById

        public static InFlight.Error getInFlightErrorById​(int id)
      • getErrorId

        public int getErrorId()