|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.ui.util.NavExceptionHelper
public class NavExceptionHelper
Helper class centralise some Exception handling
Constructor Summary | |
---|---|
NavExceptionHelper()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NavExceptionHelper()
Method Detail |
---|
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
-
public static String toLog(Throwable t)
t
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |