Class CancelledSubscriptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.stream.CancelledSubscriptionException
- All Implemented Interfaces:
Serializable
public final class CancelledSubscriptionException extends RuntimeException
A
RuntimeException
that is raised to notify StreamMessage.whenComplete()
when a
Subscriber
has cancelled its Subscription
.- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description static CancelledSubscriptionException
get()
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
-
Method Details
-
get
Returns aCancelledSubscriptionException
which may be a singleton or a new instance, depending onFlags.verboseExceptionSampler()
's decision.
-