Skip to content

Trip on Specific Error Types

Latest
Compare
Choose a tag to compare
@djspinmonkey djspinmonkey released this 01 Mar 17:49
· 2 commits to master since this release

This release adds two new breaker options:

only_trip_on: array of types that exceptions must match for the breaker to trip
never_trip_on: array of exception types to re-raise without tripping the breaker

The breaker checks the only_trip_on option first; an exception matching both lists will therefore not trip the breaker.