Package io.vertx.circuitbreaker
Class OpenCircuitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.vertx.circuitbreaker.OpenCircuitException
-
- All Implemented Interfaces:
Serializable
public class OpenCircuitException extends RuntimeException
Exception reported when the circuit breaker is open.For performance reason, this exception does not carry a stack trace. You are not allowed to set a stack trace or a cause to this exception. This immutability allows using a singleton instance.
- Author:
- Clement Escoffier
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static OpenCircuitException
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
initCause(Throwable cause)
void
setStackTrace(StackTraceElement[] stackTrace)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, toString
-
-
-
-
Field Detail
-
INSTANCE
public static OpenCircuitException INSTANCE
-
-
Method Detail
-
setStackTrace
public void setStackTrace(StackTraceElement[] stackTrace)
- Overrides:
setStackTrace
in classThrowable
-
-