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
,TimeoutException
public class CancellationException extends RuntimeException
A
RuntimeException
raised when a requested invocation is forced to stop before its completion.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description CancellationException()
Creates a new exception.CancellationException(String message)
Creates a new instance with the specifiedmessage
.CancellationException(String message, Throwable cause)
Creates a new instance with the specifiedmessage
andcause
.protected
CancellationException(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.CancellationException(Throwable cause)
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
Creates a new instance with the specifiedmessage
andcause
. -
CancellationException
Creates a new instance with the specifiedcause
. -
CancellationException
protected CancellationException(@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.
-