public final class ThrowableHelper
extends java.lang.ObjectThrowables| Modifier and Type | Method and Description |
|---|---|
static int | throwableToCode(java.lang.Throwable t)Convert a throwable to an HTTP status code |
static java.lang.String | throwableToMessage(java.lang.Throwable t, java.lang.String defaultMessage)Get the given throwable's message or return a default one if it is null |
public static int throwableToCode(java.lang.Throwable t)
t - the throwable to convertpublic static java.lang.String throwableToMessage(java.lang.Throwable t,
java.lang.String defaultMessage)nullt - the throwable's messagedefaultMessage - the message to return if the one of the throwable is null