org.opensha.commons.util
Class ExceptionUtils
java.lang.Object
org.opensha.commons.util.ExceptionUtils
public class ExceptionUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionUtils
public ExceptionUtils()
throwAsRuntimeException
public static void throwAsRuntimeException(Throwable t)
- Throws the given exception as a runtime exception. If it already is a runtime
exception then it will be simply cast and thrown, otherwise a new runtime exception
will be created with this as it's cause.
- Parameters:
t -
asRuntimeException
public static RuntimeException asRuntimeException(Throwable t)
- Returns the given exception as a runtime exception. If it already is a runtime
exception then it will be simply cast and returned, otherwise a new runtime exception
will be created with this as it's cause.
- Parameters:
t -