Package org.omegazero.http.common
Class MessageStreamClosedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.omegazero.http.common.HTTPException
org.omegazero.http.common.MessageStreamClosedException
- All Implemented Interfaces:
Serializable
An exception thrown when a
HTTPMessageStream
is closed unexpectedly.- Since:
- 1.4.1
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newMessageStreamClosedException
with the given close reason.MessageStreamClosedException
(MessageStreamClosedException.CloseReason closeReason, String msg, Throwable cause) Creates a newMessageStreamClosedException
with the given close reason, detail message, and cause.MessageStreamClosedException
(MessageStreamClosedException.CloseReason closeReason, Throwable cause) Creates a newMessageStreamClosedException
with the given close reason and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the close reason passed in the constructor.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MessageStreamClosedException
Creates a newMessageStreamClosedException
with the given close reason.- Parameters:
closeReason
- The close reason
-
MessageStreamClosedException
public MessageStreamClosedException(MessageStreamClosedException.CloseReason closeReason, Throwable cause) Creates a newMessageStreamClosedException
with the given close reason and cause.- Parameters:
closeReason
- The close reasoncause
- The cause
-
MessageStreamClosedException
public MessageStreamClosedException(MessageStreamClosedException.CloseReason closeReason, String msg, Throwable cause) Creates a newMessageStreamClosedException
with the given close reason, detail message, and cause.- Parameters:
closeReason
- The close reasonmsg
- The detail messagecause
- The cause
-
-
Method Details
-
getCloseReason
Returns the close reason passed in the constructor.- Returns:
- The close reason
-