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