Class RetryableRequestDroppedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.servicetalk.capacity.limiter.api.RequestDroppedException
io.servicetalk.traffic.resilience.http.RetryableRequestDroppedException
- All Implemented Interfaces:
RetryableException
,Serializable
public final class RetryableRequestDroppedException
extends RequestDroppedException
implements RetryableException
A
retryable
RequestDroppedException
to indicate that a request was dropped by a
client/server due to capacity constraints.
Instances of this exception are expected to be thrown when a client side capacity is reached, thus the exception did not touch the "wire" (network) yet, meaning that its safe to be retried. Retries are useful in the context of capacity, to maximize chances for a request to succeed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.RetryableRequestDroppedException
(String message) Creates a new instance.RetryableRequestDroppedException
(String message, Throwable cause) Creates a new instance.RetryableRequestDroppedException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a new instance.Creates a new instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RetryableRequestDroppedException
public RetryableRequestDroppedException()Creates a new instance. -
RetryableRequestDroppedException
Creates a new instance.- Parameters:
message
- the detail message.
-
RetryableRequestDroppedException
Creates a new instance.- Parameters:
message
- the detail message.cause
- of this exception.
-
RetryableRequestDroppedException
Creates a new instance.- Parameters:
cause
- of this exception.
-
RetryableRequestDroppedException
public RetryableRequestDroppedException(@Nullable String message, @Nullable Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a new instance.- Parameters:
message
- the detail message.cause
- of this exception.enableSuppression
-true
if suppression should be enabled.writableStackTrace
-true
if the stack trace should be writable
-