| java.lang.Object org.apache.velocity.util.ExceptionUtils
ExceptionUtils | public class ExceptionUtils (Code) | | Use this to create a new Exception. This will run under JDK 1.3 or greater.
However, it running under JDK 1.4 it will set the cause.
author: Llewellyn Falco |
createRuntimeException | public static RuntimeException createRuntimeException(String message, Throwable cause)(Code) | | Create a new RuntimeException, setting the cause if possible.
Parameters: message - Parameters: cause - A runtime exception object. |
createWithCause | public static Throwable createWithCause(Class clazz, String message, Throwable cause)(Code) | | Create a new Exception, setting the cause if possible.
Parameters: clazz - Parameters: message - Parameters: cause - A Throwable. |
setCause | public static void setCause(Throwable onObject, Throwable cause)(Code) | | Set the cause of the Exception. Will detect if this is not allowed.
Parameters: onObject - Parameters: cause - |
|
|