Class PredicateBasedExceptionDecision
- java.lang.Object
-
- io.smallrye.faulttolerance.core.util.PredicateBasedExceptionDecision
-
- All Implemented Interfaces:
ExceptionDecision
public class PredicateBasedExceptionDecision extends Object implements ExceptionDecision
-
-
Field Summary
-
Fields inherited from interface io.smallrye.faulttolerance.core.util.ExceptionDecision
ALWAYS_EXPECTED, ALWAYS_FAILURE
-
-
Constructor Summary
Constructors Constructor Description PredicateBasedExceptionDecision(Predicate<Throwable> isExpected)
-
-
-
Method Detail
-
isConsideredExpected
public boolean isConsideredExpected(Throwable e)
- Specified by:
isConsideredExpectedin interfaceExceptionDecision
-
-