Package io.micronaut.http.body
Class ByteBody.BodyDiscardedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.micronaut.http.body.ByteBody.BodyDiscardedException
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- ByteBody
Exception that is sent to subscribers when the body is discarded as a result of
ByteBody.allowDiscard()
calls.- See Also:
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
create
Get an instance of this exception. At the moment this is a singleton without stack trace, but this may change in the future.- Returns:
- The instance
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-