public class ExceptionUtil extends Object
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 it
Should allow an intermediate exception to be rethrownpublic static void rethrowAPIAuthenticationException(Throwable thrown)
thrown
- Copyright © 2024 OpenMRS Inc.. All rights reserved.