Package com.linecorp.armeria.common
Class TimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.common.CancellationException
com.linecorp.armeria.common.TimeoutException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DnsTimeoutException
,RequestTimeoutException
,ResponseTimeoutException
,WriteTimeoutException
public class TimeoutException extends CancellationException
A
RuntimeException
raised when a requested invocation does not complete before its deadline.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description TimeoutException()
Creates a new exception.TimeoutException(String message)
Creates a new instance with the specifiedmessage
.TimeoutException(String message, Throwable cause)
Creates a new instance with the specifiedmessage
andcause
.protected
TimeoutException(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.TimeoutException(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
-
TimeoutException
public TimeoutException()Creates a new exception. -
TimeoutException
Creates a new instance with the specifiedmessage
. -
TimeoutException
Creates a new instance with the specifiedmessage
andcause
. -
TimeoutException
Creates a new instance with the specifiedcause
. -
TimeoutException
protected TimeoutException(@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.
-