Package com.avoka.fc.core.util
Class VelocityDataSourceResourceLoader.ExceptionUtils
- java.lang.Object
-
- com.avoka.fc.core.util.VelocityDataSourceResourceLoader.ExceptionUtils
-
- Enclosing class:
- VelocityDataSourceResourceLoader
public static class VelocityDataSourceResourceLoader.ExceptionUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ExceptionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuntimeException
createRuntimeException(String message, Throwable cause)
Create a new RuntimeException, setting the cause if possible.static Throwable
createWithCause(Class clazz, String message, Throwable cause)
Create a new Exception, setting the cause if possible.static void
setCause(Throwable onObject, Throwable cause)
Set the cause of the Exception.
-
-
-
Method Detail
-
createRuntimeException
public static RuntimeException createRuntimeException(String message, Throwable cause)
Create a new RuntimeException, setting the cause if possible.- Parameters:
message
-cause
-- Returns:
- A runtime exception object.
-
createWithCause
public static Throwable createWithCause(Class clazz, String message, Throwable cause)
Create a new Exception, setting the cause if possible.- Parameters:
clazz
-message
-cause
-- Returns:
- A Throwable.
-
-