Package com.caplin.streamlink
Enum Class CommandErrorType
- All Implemented Interfaces:
Serializable
,Comparable<CommandErrorType>
,Constable
Enumeration defining the errors that can occur for a command.
You can obtain the CommandErrorType
by calling getError()
on a CommandErrorEvent
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDisconnect occurred and a command set as cancellable has been cancelled.The subject has been deleted.The command may have been sent to server, but disconnect occurred.The supplied command parameters are invalid for the command.The command subject could not be found.The client does not have permission to read the subject.The throttle command failed.The subject is not available.The client does not have permission to write to the subject.The Liberator has detected a breach of license conditions and has rejected the attempted trade. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandErrorType
Returns the enum constant of this class with the specified name.static CommandErrorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DELETED
The subject has been deleted.
-
DISCONNECT_OCCURRED
The command may have been sent to server, but disconnect occurred. The command may not have been executed.
-
INVALID_PARAMETERS
The supplied command parameters are invalid for the command.
-
NOT_FOUND
The command subject could not be found.
-
READ_DENIED
The client does not have permission to read the subject.
-
THROTTLE_FAILED
The throttle command failed.
-
UNAVAILABLE
The subject is not available.
-
WRITE_DENIED
The client does not have permission to write to the subject.
-
WRITE_DENIED_TRADE_GROUP_LICENSE_EXCEEDED
The Liberator has detected a breach of license conditions and has rejected the attempted trade.
-
CANCELLED
Disconnect occurred and a command set as cancellable has been cancelled.
-
-
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
-