Class BodyReadException

All Implemented Interfaces:
Serializable

public final class BodyReadException extends IOException
A read from a BodyReader that could not complete because its request ended early. Callers that keep reading after one of these get the same reason until the reader is closed.
See Also:
  • Constructor Details

    • BodyReadException

      public BodyReadException(BodyReadException.Reason reason)
      Creates a failure with the given reason.
      Parameters:
      reason - why the read stopped
  • Method Details