Enum Class RequestTracker.ErrorClass

java.lang.Object
java.lang.Enum<RequestTracker.ErrorClass>
io.servicetalk.client.api.RequestTracker.ErrorClass
All Implemented Interfaces:
Serializable, Comparable<RequestTracker.ErrorClass>, Constable
Enclosing interface:
RequestTracker

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

    • LOCAL_ORIGIN_REQUEST_FAILED

      public static final RequestTracker.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 RequestTracker.ErrorClass EXT_ORIGIN_TIMEOUT
      Failures related to locally enforced timeouts waiting for responses from the peer.
    • EXT_ORIGIN_REQUEST_FAILED

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

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

    • values

      public static RequestTracker.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 RequestTracker.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