public final class Exceptions
extends java.lang.Object
Exception related functions.| Constructor and Description |
|---|
Exceptions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
rethrowAsRuntime(java.lang.Throwable e)
Re-throw exception as RuntimeException either directly or by
wrapping it into a RuntimeException.
|
static java.lang.String |
toMessage(java.lang.Throwable e)
Get the exception message.
|
public static void rethrowAsRuntime(java.lang.Throwable e)
e - The causing exception to re-throw.public static java.lang.String toMessage(java.lang.Throwable e)
This function implements a best effort approach to get the exception message.
e - The exception to get the message from (maybe null).null if the submitted exception
is null.