Class FailFastException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.linecorp.armeria.client.circuitbreaker.FailFastException
- All Implemented Interfaces:
Serializable
public final class FailFastException extends RuntimeException
An exception indicating that a request has been failed by circuit breaker.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FailFastException(CircuitBreaker circuitBreaker)
Creates a new instance with the specifiedCircuitBreaker
. -
Method Summary
Modifier and Type Method Description Throwable
fillInStackTrace()
CircuitBreaker
getCircuitBreaker()
Returns theCircuitBreaker
that has detected the failure.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FailFastException
Creates a new instance with the specifiedCircuitBreaker
.
-
-
Method Details
-
getCircuitBreaker
Returns theCircuitBreaker
that has detected the failure. -
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-