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
A
RuntimeException
raised when the connection to the remote peer has been closed unexpectedly.- See Also:
-
Constructor Summary
ConstructorDescriptionClosedSessionException
(@Nullable String message) Creates a new instance with the specifiedmessage
.ClosedSessionException
(@Nullable String message, @Nullable Throwable cause) Creates a new instance with the specifiedmessage
andcause
.Creates a new instance with the specifiedcause
. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
public ClosedSessionException(@Nullable @Nullable String message, @Nullable @Nullable Throwable cause) 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.
-