Enum Class BodyReadException.Reason

java.lang.Object
java.lang.Enum<BodyReadException.Reason>
com.jsgalactic.axiom.http.BodyReadException.Reason
All Implemented Interfaces:
Serializable, Comparable<BodyReadException.Reason>, Constable
Enclosing class:
BodyReadException

public static enum BodyReadException.Reason extends Enum<BodyReadException.Reason>
Why a read stopped.
  • Enum Constant Details

    • CANCELLED

      public static final BodyReadException.Reason CANCELLED
      The request or the reader was cancelled; its bytes were released.
    • INTERRUPTED

      public static final BodyReadException.Reason INTERRUPTED
      The request's deadline expired or its thread was interrupted.
    • LIMIT_EXCEEDED

      public static final BodyReadException.Reason LIMIT_EXCEEDED
      More bytes were delivered than the body's configured limit.
  • Method Details

    • values

      public static BodyReadException.Reason[] 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 BodyReadException.Reason 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