Enum Class ErrorType

java.lang.Object
java.lang.Enum<ErrorType>
com.amazonaws.ivs.player.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ErrorType>, Constable

public enum ErrorType extends Enum<ErrorType>
Enumeration of error codes used in Player.Listener.onError(PlayerException).
  • Enum Constant Details

    • OK

      public static final ErrorType OK
    • ERROR

      public static final ErrorType ERROR
      Generic error occurred
    • ERROR_NOT_SUPPORTED

      public static final ErrorType ERROR_NOT_SUPPORTED
      Method or feature not supported
    • ERROR_NO_SOURCE

      public static final ErrorType ERROR_NO_SOURCE
      No source present for the operation
    • ERROR_INVALID_DATA

      public static final ErrorType ERROR_INVALID_DATA
      Data or input is invalid for the operation
    • ERROR_INVALID_STATE

      public static final ErrorType ERROR_INVALID_STATE
      Class or object is an invalid state
    • ERROR_INVALID_PARAMETER

      public static final ErrorType ERROR_INVALID_PARAMETER
      Method parameter is invalid
    • ERROR_TIMEOUT

      public static final ErrorType ERROR_TIMEOUT
      Method or operation timed out
    • ERROR_NETWORK

      public static final ErrorType ERROR_NETWORK
      Unspecified Network error
    • ERROR_NETWORK_IO

      public static final ErrorType ERROR_NETWORK_IO
      Error indicating a network I/O failure
    • ERROR_AUTHORIZATION

      public static final ErrorType ERROR_AUTHORIZATION
      Error indicating a network resource is not authorized
    • ERROR_NOT_AVAILABLE

      public static final ErrorType ERROR_NOT_AVAILABLE
      The stream is not available. The accompanying HTTP status code can help identify why the stream is unavailable. If the status code is 429, the concurrent-viewers limit was reached. If the status code is 404, the stream does not exist or is offline.
    • ERROR_TYPE_UNKNOWN

      public static final ErrorType ERROR_TYPE_UNKNOWN
      Unknown error
  • Method Details

    • values

      public static ErrorType[] 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 ErrorType 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
    • getErrorCode

      public int getErrorCode()
    • fromInt

      public static ErrorType fromInt(int code)