public final class ExceptionUtil extends Object
Constructor and Description |
---|
ExceptionUtil() |
Modifier and Type | Method and Description |
---|---|
static PageException |
addHint(PageExceptionImpl pe,
String hint) |
static String |
createSoundexDetail(String name,
Iterator<String> it,
String keyName) |
static String |
getMessage(Throwable t) |
static String |
getStacktrace(Throwable t,
boolean addMessage) |
static void |
rethrowIfNecessary(Throwable t) |
static String |
similarKeyMessage(Collection.Key[] _keys,
String keySearched,
String keyLabel,
String keyLabels,
boolean listAll)
creates a message for key not found with soundex check for similar key
|
static String |
similarKeyMessage(Collection coll,
String keySearched,
String keyLabel,
String keyLabels,
boolean listAll) |
static IOException |
toIOException(Throwable t) |
static RuntimeException |
toRuntimeException(Throwable t) |
public ExceptionUtil()
public static String getStacktrace(Throwable t, boolean addMessage)
public static String getMessage(Throwable t)
public static PageException addHint(PageExceptionImpl pe, String hint)
public static String similarKeyMessage(Collection.Key[] _keys, String keySearched, String keyLabel, String keyLabels, boolean listAll)
keys
- keyLabel
- public static String similarKeyMessage(Collection coll, String keySearched, String keyLabel, String keyLabels, boolean listAll)
public static IOException toIOException(Throwable t)
public static String createSoundexDetail(String name, Iterator<String> it, String keyName)
public static RuntimeException toRuntimeException(Throwable t)
public static void rethrowIfNecessary(Throwable t)
Copyright © 2015 Lucee