Class ClosedStreamException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.stream.ClosedStreamException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClosedSessionException
A
RuntimeException
that is raised when a StreamMessage
has been closed unexpectedly.- See Also:
- Serialized Form
-
Constructor Summary
ModifierConstructorDescriptionClosedStreamException(@Nullable String message)
Creates a new instance with the specifiedmessage
.ClosedStreamException(@Nullable String message, @Nullable Throwable cause)
Creates a new instance with the specifiedmessage
andcause
.protected
ClosedStreamException(@Nullable String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Creates a new instance with the specifiedmessage
,cause
, suppression enabled or disabled, and writable stack trace enabled or disabled.ClosedStreamException(@Nullable Throwable cause)
Creates a new instance with the specifiedcause
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClosedStreamException
get()
Returns aClosedStreamException
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
-
ClosedStreamException
Creates a new instance with the specifiedmessage
. -
ClosedStreamException
public ClosedStreamException(@Nullable @Nullable String message, @Nullable @Nullable Throwable cause)Creates a new instance with the specifiedmessage
andcause
. -
ClosedStreamException
Creates a new instance with the specifiedcause
. -
ClosedStreamException
protected ClosedStreamException(@Nullable @Nullable String message, @Nullable @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace)Creates a new instance with the specifiedmessage
,cause
, suppression enabled or disabled, and writable stack trace enabled or disabled.
-
-
Method Details
-
get
Returns aClosedStreamException
which may be a singleton or a new instance, depending onFlags.verboseExceptionSampler()
's decision.
-