Package com.jsgalactic.axiom.http
Class StreamAbortedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.jsgalactic.axiom.http.StreamAbortedException
- All Implemented Interfaces:
Serializable
Thrown by a
BodyWriter when a streamed response can no longer be written. The reason says why. After this exception the writer stays aborted: every further write
throws it again, so swallowing it does not revive the stream.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhy a stream was aborted. -
Constructor Summary
ConstructorsConstructorDescriptionCreates the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StreamAbortedException
Creates the exception.- Parameters:
reason- why the stream was aborted
-
-
Method Details
-
reason
Returns why the stream was aborted.- Returns:
- the reason
-