Package io.aeron
Enum Class ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<ErrorCode>,Constable
Error codes between media driver and client and the on-wire protocol.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChannel Endpoint could not be successfully opened.Aeron encountered an error condition.An image was rejected.A failure occurred creating a new channel or parsing the channel string.Attempted to send a command that is malformed.Attempted to send a command known by the driver, but not currently supported.A publication was revoked.Attempted to send a command that referred to a resource that currently was unavailable.Aeron encountered insufficient storage space while adding a resource.A code value returned was not known.Attempted to send a command unknown by the driver.Attempted to reference a counter, but it was not found.Attempted to send a command that had a hostname that could not be resolved.Attempted to reference a publication, but it was not found.Attempted to reference a subscription, but it was not found.Old generic value, no longer used (0 value clashes with success). -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorCodeget(int value) Get the ErrorCode that corresponds to the given value.intvalue()Get the value of this ErrorCode.static ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNUSED
Old generic value, no longer used (0 value clashes with success). Retained for version compatibility. -
INVALID_CHANNEL
A failure occurred creating a new channel or parsing the channel string. -
UNKNOWN_SUBSCRIPTION
Attempted to reference a subscription, but it was not found. -
UNKNOWN_PUBLICATION
Attempted to reference a publication, but it was not found. -
CHANNEL_ENDPOINT_ERROR
Channel Endpoint could not be successfully opened. -
UNKNOWN_COUNTER
Attempted to reference a counter, but it was not found. -
UNKNOWN_COMMAND_TYPE_ID
Attempted to send a command unknown by the driver. -
MALFORMED_COMMAND
Attempted to send a command that is malformed. Typically, too short. -
NOT_SUPPORTED
Attempted to send a command known by the driver, but not currently supported. -
UNKNOWN_HOST
Attempted to send a command that had a hostname that could not be resolved. -
RESOURCE_TEMPORARILY_UNAVAILABLE
Attempted to send a command that referred to a resource that currently was unavailable. -
GENERIC_ERROR
Aeron encountered an error condition. -
STORAGE_SPACE
Aeron encountered insufficient storage space while adding a resource. -
IMAGE_REJECTED
An image was rejected. -
PUBLICATION_REVOKED
A publication was revoked. -
UNKNOWN_CODE_VALUE
A code value returned was not known.
-
-
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
-
value
public int value()Get the value of this ErrorCode.- Returns:
- The value.
-
get
Get the ErrorCode that corresponds to the given value.- Parameters:
value- of the ErrorCode- Returns:
- ErrorCode
-