public class ExceptionUtil extends Object
Constructor and Description |
---|
ExceptionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
rethrowAPIAuthenticationException(Throwable thrown)
If any cause in the given exception chain is an APIAuthenticationException, rethrow that
|
static void |
rethrowIfCause(Throwable thrown,
Class<? extends RuntimeException> causeType)
If any cause in the exception chain is an instance of causeType, then rethrow that exception
|
public static void rethrowIfCause(Throwable thrown, Class<? extends RuntimeException> causeType)
thrown
- causeType
- must be a RuntimeException
so that we can throw itpublic static void rethrowAPIAuthenticationException(Throwable thrown)
thrown
- Copyright © 2018 OpenMRS LLC.. All Rights Reserved.