Class CancelledSubscriptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.stream.CancelledSubscriptionException
- All Implemented Interfaces:
Serializable
A
RuntimeException
that is raised to notify StreamMessage.whenComplete()
when a
Subscriber
has cancelled its Subscription
.- See Also:
-
Constructor Summary
ConstructorDescriptionCancelledSubscriptionException
(String message) Creates a new exception with the specifiedmessage
. -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns aCancelledSubscriptionException
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
-
CancelledSubscriptionException
Creates a new exception with the specifiedmessage
.
-
-
Method Details
-
get
Returns aCancelledSubscriptionException
which may be a singleton or a new instance, depending onFlags.verboseExceptionSampler()
's decision.
-