Package com.linecorp.armeria.common
Class CancellationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.CancellationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RequestCancellationException,ResponseCancellationException,ResponseCompleteException,TimeoutException
A
RuntimeException raised when a requested invocation is forced to stop before its completion.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a new exception.CancellationException(@Nullable String message) Creates a new instance with the specifiedmessage.CancellationException(@Nullable String message, @Nullable Throwable cause) Creates a new instance with the specifiedmessageandcause.protectedCancellationException(@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.Creates a new instance with the specifiedcause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CancellationException
public CancellationException()Creates a new exception. -
CancellationException
Creates a new instance with the specifiedmessage. -
CancellationException
public CancellationException(@Nullable @Nullable String message, @Nullable @Nullable Throwable cause) Creates a new instance with the specifiedmessageandcause. -
CancellationException
Creates a new instance with the specifiedcause. -
CancellationException
protected CancellationException(@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.
-