public final class DefaultFaultClassifier extends Object implements FaultClassifier
| Constructor and Description |
|---|
DefaultFaultClassifier() |
DefaultFaultClassifier(ClassificationStrategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
classify(Throwable throwable)
Classifies the given
throwable into transient and persistent faults. |
DefaultFaultClassifier |
exclude(Predicate<Throwable> predicate) |
DefaultFaultClassifier |
include(Predicate<Throwable> predicate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclassifyExceptionallypublic DefaultFaultClassifier()
public DefaultFaultClassifier(ClassificationStrategy strategy)
public DefaultFaultClassifier include(Predicate<Throwable> predicate)
public DefaultFaultClassifier exclude(Predicate<Throwable> predicate)
public Throwable classify(Throwable throwable)
FaultClassifierthrowable into transient and persistent faults.classify in interface FaultClassifierthrowable - the throwableTransientFaultException with the given
throwable as its cause, if it's considered transientCopyright © 2015–2019 Zalando SE. All rights reserved.