Package io.aeron

Enum Class ErrorCode

All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
Error codes between media driver and client and the on-wire protocol.
  • Enum Constant Details

    • UNUSED

      public static final ErrorCode UNUSED
      Old generic value, no longer used (0 value clashes with success). Retained for version compatibility.
    • INVALID_CHANNEL

      public static final ErrorCode INVALID_CHANNEL
      A failure occurred creating a new channel or parsing the channel string.
    • UNKNOWN_SUBSCRIPTION

      public static final ErrorCode UNKNOWN_SUBSCRIPTION
      Attempted to reference a subscription, but it was not found.
    • UNKNOWN_PUBLICATION

      public static final ErrorCode UNKNOWN_PUBLICATION
      Attempted to reference a publication, but it was not found.
    • CHANNEL_ENDPOINT_ERROR

      public static final ErrorCode CHANNEL_ENDPOINT_ERROR
      Channel Endpoint could not be successfully opened.
    • UNKNOWN_COUNTER

      public static final ErrorCode UNKNOWN_COUNTER
      Attempted to reference a counter, but it was not found.
    • UNKNOWN_COMMAND_TYPE_ID

      public static final ErrorCode UNKNOWN_COMMAND_TYPE_ID
      Attempted to send a command unknown by the driver.
    • MALFORMED_COMMAND

      public static final ErrorCode MALFORMED_COMMAND
      Attempted to send a command that is malformed. Typically, too short.
    • NOT_SUPPORTED

      public static final ErrorCode NOT_SUPPORTED
      Attempted to send a command known by the driver, but not currently supported.
    • UNKNOWN_HOST

      public static final ErrorCode UNKNOWN_HOST
      Attempted to send a command that had a hostname that could not be resolved.
    • RESOURCE_TEMPORARILY_UNAVAILABLE

      public static final ErrorCode RESOURCE_TEMPORARILY_UNAVAILABLE
      Attempted to send a command that referred to a resource that currently was unavailable.
    • GENERIC_ERROR

      public static final ErrorCode GENERIC_ERROR
      Aeron encountered an error condition.
    • STORAGE_SPACE

      public static final ErrorCode STORAGE_SPACE
      Aeron encountered insufficient storage space while adding a resource.
    • IMAGE_REJECTED

      public static final ErrorCode IMAGE_REJECTED
      An image was rejected.
    • PUBLICATION_REVOKED

      public static final ErrorCode PUBLICATION_REVOKED
      A publication was revoked.
    • UNKNOWN_CODE_VALUE

      public static final ErrorCode UNKNOWN_CODE_VALUE
      A code value returned was not known.
  • Method Details

    • values

      public static ErrorCode[] 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 ErrorCode 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
    • value

      public int value()
      Get the value of this ErrorCode.
      Returns:
      The value.
    • get

      public static ErrorCode get(int value)
      Get the ErrorCode that corresponds to the given value.
      Parameters:
      value - of the ErrorCode
      Returns:
      ErrorCode