Package com.linecorp.armeria.common
Class ClosedSessionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.stream.ClosedStreamException
com.linecorp.armeria.common.ClosedSessionException
- All Implemented Interfaces:
Serializable
public final class ClosedSessionException extends ClosedStreamException
A
RuntimeException
raised when the connection to the remote peer has been closed unexpectedly.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ClosedSessionException(String message)
Creates a new instance with the specifiedmessage
.ClosedSessionException(String message, Throwable cause)
Creates a new instance with the specifiedmessage
andcause
.ClosedSessionException(Throwable cause)
Creates a new instance with the specifiedcause
. -
Method Summary
Modifier and Type Method Description static ClosedSessionException
get()
Returns aClosedSessionException
which may be a singleton or a new instance, depending onFlags.verboseExceptionSampler()
's decision.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClosedSessionException
Creates a new instance with the specifiedmessage
. -
ClosedSessionException
Creates a new instance with the specifiedmessage
andcause
. -
ClosedSessionException
Creates a new instance with the specifiedcause
.
-
-
Method Details
-
get
Returns aClosedSessionException
which may be a singleton or a new instance, depending onFlags.verboseExceptionSampler()
's decision.
-