|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.util.ExceptionUtil
public class ExceptionUtil
Utility methods for dealing with exceptions
Constructor Summary | |
---|---|
ExceptionUtil()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionUtil()
Method Detail |
---|
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
-
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |