public class ExceptionUtils extends Object
| Constructor and Description |
|---|
ExceptionUtils() |
| Modifier and Type | Method and 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.
|
public static RuntimeException createRuntimeException(String message, Throwable cause)
message - cause - public static Throwable createWithCause(Class clazz, String message, Throwable cause)
clazz - message - cause - Copyright © 2000–2016. All rights reserved.