Package com.amazonaws.ivs.broadcast
Enum Class ErrorType
- All Implemented Interfaces:
Serializable
,Comparable<ErrorType>
,Constable
Enumeration of error codes used in
BroadcastSession.Listener.onError(BroadcastException)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConnection has ended.Generic error occurred.Error indicating a network resource is not authorized.Software caused the connection to abort.Connection reset by the server.Device, such as a mic or camera, lost its connection.Data or input is invalid for the operation.Method parameter is invalid.Class or object is an invalid state.Unspecified Network error.Error indicating a network I/O failure.No source present for the operation.Error indicating a network resource is not available.Not connected.Method or feature not supported.Method or operation timed out.Error type unknown when using fromInt(), where the argument was out of range of this enum.Error indicating a non-blocking resource would block but did not; retry later.Call made on the wrong thread.No Error. -
Method Summary
-
Enum Constant Details
-
OK
No Error. Value = 0 -
ERROR
Generic error occurred. Value = 1 -
ERROR_NOT_SUPPORTED
Method or feature not supported. Value = 2 -
ERROR_NO_SOURCE
No source present for the operation. Value = 3 -
ERROR_INVALID_DATA
Data or input is invalid for the operation. Value = 4 -
ERROR_INVALID_STATE
Class or object is an invalid state. Value = 5 -
ERROR_INVALID_PARAMETER
Method parameter is invalid. Value = 6 -
ERROR_TIMEOUT
Method or operation timed out. Value = 7 -
ERROR_NETWORK
Unspecified Network error. Value = 8 -
ERROR_NETWORK_IO
Error indicating a network I/O failure. Value = 9 -
ERROR_AUTHORIZATION
Error indicating a network resource is not authorized. Value = 10 -
ERROR_NOT_AVAILABLE
Error indicating a network resource is not available. Value = 11 -
ERROR_WOULD_BLOCK
Error indicating a non-blocking resource would block but did not; retry later. Value = 12 -
ERROR_CONNECTION_RESET
Connection reset by the server. Value = 13 -
ERROR_CONNECTION_ABORTED
Software caused the connection to abort. No FDs available or an unknown error occurred. Value = 14 -
ERROR_NOT_CONNECTED
Not connected. Value = 15 -
ERROR_DEVICE_DISCONNECTED
Device, such as a mic or camera, lost its connection. Value = 16 -
END_OF_FILE
Connection has ended. Value = 17 -
ERROR_WRONG_THREAD
Call made on the wrong thread. You must make API calls from the thread you created the BroadcastSession on. Value = 18 -
ERROR_TYPE_UNKNOWN
Error type unknown when using fromInt(), where the argument was out of range of this enum. Value = 19
-
-
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
-