
Hystrix: Latency and Fault Tolerance for Distributed Systems
com.netflix.hystrix.exception
Class HystrixBadRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.netflix.hystrix.exception.HystrixBadRequestException
- All Implemented Interfaces:
- java.io.Serializable
public class HystrixBadRequestException
- extends java.lang.RuntimeException
An exception representing an error with provided arguments or state rather than an execution failure.
Unlike all other exceptions thrown by a HystrixCommand this will not trigger fallback, not count against failure metrics and thus not trigger the circuit breaker.
NOTE: This should only be used when an error is due to user input such as IllegalArgumentException otherwise it defeats the purpose of fault-tolerance and fallback behavior.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HystrixBadRequestException
public HystrixBadRequestException(java.lang.String message)
HystrixBadRequestException
public HystrixBadRequestException(java.lang.String message,
java.lang.Throwable cause)