|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.ExceptionHelper
public class ExceptionHelper
| Constructor Summary | |
|---|---|
ExceptionHelper()
|
|
| Method Summary | |
|---|---|
static String |
errorInfo(ErrorID eid,
String parm,
Throwable ex)
Generate error string for logging or /problems online display |
static void |
generateErrorPage(HttpServletResponse resp,
Exception e)
Generate HTML page to send to end user after fatal error |
static void |
genericHandler(ErrorID eid,
String parm,
Throwable ex)
Generic Exception Handler called from catch clause |
static void |
genericHandler(ErrorID eid,
Throwable ex)
|
static void |
genericTopHandler(ErrorID eid,
String parm,
Throwable t)
Generic Top-Level Exception Handler caled from catch clause (doesn't rethrow exception) |
static void |
genericTopHandler(ErrorID eid,
Throwable ex)
|
static String |
shortStackTrace(Throwable ex)
Generate traceback only to the Servlet-container interface. |
static void |
signal(ErrorID eid)
Generate, trace, and throw Portal Exception given ErrorID. |
static void |
signal(ErrorID eid,
String parm)
Create PortalException from Errorid, trace, and throw it. |
static void |
signal(ErrorID eid,
String parm,
boolean tracenow)
Create PortalException from ErrorID and throw it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionHelper()
| Method Detail |
|---|
public static String shortStackTrace(Throwable ex)
ex - any throwable exception
public static void genericHandler(ErrorID eid,
String parm,
Throwable ex)
throws PortalException
eid - the ErrorID (as seen from catch)parm - ex - the Exception caught
PortalException
public static void genericHandler(ErrorID eid,
Throwable ex)
throws PortalException
PortalException
public static void signal(ErrorID eid,
String parm,
boolean tracenow)
throws PortalException
eid - ErrorIdparm - Additional error informationtracenow - Trace now or defer till first catch.
PortalException
public static void signal(ErrorID eid,
String parm)
throws PortalException
eid - ErrorID to use to generate PortalExceptionparm - Additional error information
PortalException
public static void signal(ErrorID eid)
throws PortalException
eid - ErrorID
PortalException
public static String errorInfo(ErrorID eid,
String parm,
Throwable ex)
eid - Error IDparm - Parameter stringex - Exception
public static void genericTopHandler(ErrorID eid,
String parm,
Throwable t)
eid - Error IDparm - Parameter stringt - Exception caught
public static void genericTopHandler(ErrorID eid,
Throwable ex)
public static void generateErrorPage(HttpServletResponse resp,
Exception e)
resp - Servlet response objecte - PortalException received at Servlet code.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||