public class ExceptionEvaluator extends Object
| Constructor and Description |
|---|
ExceptionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Exception> |
convertExceptionIfPossible(Throwable thowable,
Class<T> exceptionType)
Attempts to find and exception of exceptionType, in the causedBy chain of throwable.
|
public static <T extends Exception> T convertExceptionIfPossible(Throwable thowable, Class<T> exceptionType)
T - an exception type represented by exceptionType parameter.thowable - the throwable to inspect.exceptionType - the class of exception we want (including subclass of)Copyright © 2016–2019 AdvisedTesting. All rights reserved.