public class HystrixRuntimeException
extends java.lang.RuntimeException
HystrixCommand fails and does not have a fallback.| Modifier and Type | Class and Description |
|---|---|
static class |
HystrixRuntimeException.FailureType |
| Constructor and Description |
|---|
HystrixRuntimeException(HystrixRuntimeException.FailureType failureCause,
java.lang.Class<? extends HystrixInvokable> commandClass,
java.lang.String message,
java.lang.Exception cause,
java.lang.Throwable fallbackException) |
HystrixRuntimeException(HystrixRuntimeException.FailureType failureCause,
java.lang.Class<? extends HystrixInvokable> commandClass,
java.lang.String message,
java.lang.Throwable cause,
java.lang.Throwable fallbackException) |
| Modifier and Type | Method and Description |
|---|---|
HystrixRuntimeException.FailureType |
getFailureType()
The type of failure that caused this exception to be thrown.
|
java.lang.Throwable |
getFallbackException()
The
Throwable that was thrown when trying to retrieve a fallback. |
java.lang.Class<? extends HystrixInvokable> |
getImplementingClass()
The implementing class of the
HystrixCommand. |
public HystrixRuntimeException(HystrixRuntimeException.FailureType failureCause, java.lang.Class<? extends HystrixInvokable> commandClass, java.lang.String message, java.lang.Exception cause, java.lang.Throwable fallbackException)
public HystrixRuntimeException(HystrixRuntimeException.FailureType failureCause, java.lang.Class<? extends HystrixInvokable> commandClass, java.lang.String message, java.lang.Throwable cause, java.lang.Throwable fallbackException)
public HystrixRuntimeException.FailureType getFailureType()
HystrixRuntimeException.FailureTypepublic java.lang.Class<? extends HystrixInvokable> getImplementingClass()
HystrixCommand.Class<? extends HystrixCommand> public java.lang.Throwable getFallbackException()
Throwable that was thrown when trying to retrieve a fallback.Throwable