Package com.amazonaws.ivs.player
Enum Class ErrorType
- All Implemented Interfaces:
Serializable
,Comparable<ErrorType>
,Constable
Enumeration of error codes used in
Player.Listener.onError(PlayerException)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGeneric error occurredError indicating a network resource is not authorizedData or input is invalid for the operationMethod parameter is invalidClass or object is an invalid stateUnspecified Network errorError indicating a network I/O failureNo source present for the operationThe stream is not available.Method or feature not supportedMethod or operation timed outUnknown error -
Method Summary
-
Enum Constant Details
-
OK
-
ERROR
Generic error occurred -
ERROR_NOT_SUPPORTED
Method or feature not supported -
ERROR_NO_SOURCE
No source present for the operation -
ERROR_INVALID_DATA
Data or input is invalid for the operation -
ERROR_INVALID_STATE
Class or object is an invalid state -
ERROR_INVALID_PARAMETER
Method parameter is invalid -
ERROR_TIMEOUT
Method or operation timed out -
ERROR_NETWORK
Unspecified Network error -
ERROR_NETWORK_IO
Error indicating a network I/O failure -
ERROR_AUTHORIZATION
Error indicating a network resource is not authorized -
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
Unknown error
-
-
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
-
getErrorCode
public int getErrorCode() -
fromInt
-