org.apache.velocity.util
public class ExceptionUtils extends java.lang.Object
Constructor and Description |
---|
ExceptionUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.RuntimeException |
createRuntimeException(java.lang.String message,
java.lang.Throwable cause)
Create a new RuntimeException, setting the cause if possible.
|
static java.lang.Throwable |
createWithCause(java.lang.Class clazz,
java.lang.String message,
java.lang.Throwable cause)
Create a new Exception, setting the cause if possible.
|
static void |
setCause(java.lang.Throwable onObject,
java.lang.Throwable cause)
Set the cause of the Exception.
|
public static java.lang.RuntimeException createRuntimeException(java.lang.String message, java.lang.Throwable cause)
message
- cause
- public static java.lang.Throwable createWithCause(java.lang.Class clazz, java.lang.String message, java.lang.Throwable cause)
clazz
- message
- cause
- public static void setCause(java.lang.Throwable onObject, java.lang.Throwable cause)
onObject
- cause
- Copyright © 2000-2014. All Rights Reserved.