public class ThrowableClassifier extends Object
Constructor and Description |
---|
ThrowableClassifier() |
Modifier and Type | Method and Description |
---|---|
static ThrowableType |
getThrowableType(Throwable cause)
Classify the exceptions by extracting the
ThrowableType from a potential ThrowableAnnotation . |
public static ThrowableType getThrowableType(Throwable cause)
ThrowableType
from a potential ThrowableAnnotation
.cause
- the Throwable
to classify.ThrowableType
or ThrowableType.RecoverableError if there is no such annotation.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.