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
public class ClosedStreamException extends RuntimeException
A
RuntimeException
that is raised when a StreamMessage
has been closed unexpectedly.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description ClosedStreamException(String message)
Creates a new instance with the specifiedmessage
.ClosedStreamException(String message, Throwable cause)
Creates a new instance with the specifiedmessage
andcause
.protected
ClosedStreamException(String message, 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(Throwable cause)
Creates a new instance with the specifiedcause
. -
Method Summary
Modifier and Type Method Description static 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
Creates a new instance with the specifiedmessage
andcause
. -
ClosedStreamException
Creates a new instance with the specifiedcause
. -
ClosedStreamException
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.
-
-
Method Details
-
get
Returns aClosedStreamException
which may be a singleton or a new instance, depending onFlags.verboseExceptionSampler()
's decision.
-