Hystrix: Latency and Fault Tolerance for Distributed Systems



com.netflix.hystrix.exception
Class HystrixBadRequestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
HystrixBadRequestException(java.lang.String message)
           
HystrixBadRequestException(java.lang.String message, java.lang.Throwable cause)
           
 
Method Summary
 
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
 

Constructor Detail

HystrixBadRequestException

public HystrixBadRequestException(java.lang.String message)

HystrixBadRequestException

public HystrixBadRequestException(java.lang.String message,
                                  java.lang.Throwable cause)