Enum Class ErrorClass

java.lang.Object
java.lang.Enum<ErrorClass>
io.servicetalk.loadbalancer.ErrorClass
All Implemented Interfaces:
Serializable, Comparable<ErrorClass>, Constable

public enum ErrorClass extends Enum<ErrorClass>
Enumeration of the main failure classes.
  • Enum Constant Details

    • LOCAL_ORIGIN_TIMEOUT

      public static final ErrorClass LOCAL_ORIGIN_TIMEOUT
      Failures related to locally enforced timeouts that prevent session establishment with the peer.
    • LOCAL_ORIGIN_CONNECT_FAILED

      public static final ErrorClass LOCAL_ORIGIN_CONNECT_FAILED
      Failures related to connection establishment.
    • LOCAL_ORIGIN_REQUEST_FAILED

      public static final ErrorClass LOCAL_ORIGIN_REQUEST_FAILED
      Failures caused locally, these would be things that failed due to an exception locally.
    • EXT_ORIGIN_TIMEOUT

      public static final ErrorClass EXT_ORIGIN_TIMEOUT
      Failures related to locally enforced timeouts waiting for responses from the peer.
    • EXT_ORIGIN_REQUEST_FAILED

      public static final ErrorClass EXT_ORIGIN_REQUEST_FAILED
      Failures returned from the remote peer. This will be things like 5xx responses.
    • CANCELLED

      public static final ErrorClass CANCELLED
      Failure due to cancellation.
  • Method Details

    • values

      public static ErrorClass[] 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 ErrorClass 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
    • isLocal

      public boolean isLocal()