public class NavExceptionHelper extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
NavExceptionHelper() |
Modifier and Type | Method and Description |
---|---|
static Exception |
fillInStacktrace(Exception e)
Allows code which constructs an Exception to add a stack trace
|
String |
getMessage(UnrecoverableErrorException cause)
UnrecoverableErrorException can have its own message key and one
associated with any 'cause'.
|
String |
key(Throwable t)
Takes class short name for Throwable and builds a key based on that.
|
String |
missingAlternativeParameters(String... params)
Helper method takes alternate parameter / parameter name pairs and
constructs a message, if any are empty, indicating what is missing
|
String |
missingParameters(String... params)
Helper method takes alternate parameter / parameter name pairs and
constructs a message, if any are empty, indicating what is missing
|
static String |
toLog(Throwable t)
Captures the stack trace for an Exception so it can be logged
|
public String key(Throwable t)
t
- public String getMessage(UnrecoverableErrorException cause)
cause
- public String missingParameters(String... params)
params
- public String missingAlternativeParameters(String... params)
params
- public static Exception fillInStacktrace(Exception e)
e
- Copyright © 2016 Internet2. All rights reserved.