|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.ExceptionUtil
public class ExceptionUtil
Util to handle exceptions.
Constructor Summary | |
---|---|
ExceptionUtil()
|
Method Summary | ||
---|---|---|
static
|
unwrapIf(RuntimeException e,
Class<E> unwrapIf)
Given a RuntimeException, this method will - throw its cause exception, if the cause exception is an instance of the type of the unwrapIf parameter - throw its cause exception, if the cause exception is a RuntimeException - throw the given RuntimeException otherwise. |
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 <E extends Throwable> void unwrapIf(RuntimeException e, Class<E> unwrapIf) throws E extends Throwable
E extends Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |