| java.lang.Object org.jasig.portal.ExceptionHelper
ExceptionHelper | public class ExceptionHelper (Code) | | |
Method Summary | |
public static String | errorInfo(ErrorID eid, String parm, Throwable ex) | public static void | generateErrorPage(HttpServletResponse resp, Exception e) Generate HTML page to send to end user after fatal error
Parameters: resp - Servlet response object Parameters: e - PortalException received at Servlet code. | public static void | genericHandler(ErrorID eid, String parm, Throwable ex) | public static void | genericHandler(ErrorID eid, Throwable ex) | public static void | genericTopHandler(ErrorID eid, String parm, Throwable t) | public static void | genericTopHandler(ErrorID eid, Throwable ex) | public static String | shortStackTrace(Throwable ex) Generate traceback only to the Servlet-container interface. | public static void | signal(ErrorID eid, String parm, boolean tracenow) Create PortalException from ErrorID and throw it. | public static void | signal(ErrorID eid, String parm) Create PortalException from Errorid, trace, and throw it. | public static void | signal(ErrorID eid) Generate, trace, and throw Portal Exception given ErrorID. | static String | trimStackTrace(String stackTrace) Trims a String representation of a Stack Trace to remove
the portion of the trace that is in the servlet container layer. |
errorInfo | public static String errorInfo(ErrorID eid, String parm, Throwable ex)(Code) | | Generate error string for logging or /problems online display
Parameters: eid - Error ID Parameters: parm - Parameter string Parameters: ex - Exception Multiline text with message and traceback |
generateErrorPage | public static void generateErrorPage(HttpServletResponse resp, Exception e)(Code) | | Generate HTML page to send to end user after fatal error
Parameters: resp - Servlet response object Parameters: e - PortalException received at Servlet code. |
genericHandler | public static void genericHandler(ErrorID eid, String parm, Throwable ex) throws PortalException(Code) | | Generic Exception Handler called from catch clause
Parameters: eid - the ErrorID (as seen from catch) Parameters: parm - Parameters: ex - the Exception caught throws: PortalException - |
genericTopHandler | public static void genericTopHandler(ErrorID eid, String parm, Throwable t)(Code) | | Generic Top-Level Exception Handler caled from catch clause
(doesn't rethrow exception)
Parameters: eid - Error ID Parameters: parm - Parameter string Parameters: t - Exception caught |
shortStackTrace | public static String shortStackTrace(Throwable ex)(Code) | | Generate traceback only to the Servlet-container interface.
Parameters: ex - any throwable exception stack trace string without container layers |
signal | public static void signal(ErrorID eid, String parm, boolean tracenow) throws PortalException(Code) | | Create PortalException from ErrorID and throw it. Maybe trace it.
Parameters: eid - ErrorId Parameters: parm - Additional error information Parameters: tracenow - Trace now or defer till first catch. throws: PortalException - |
signal | public static void signal(ErrorID eid, String parm) throws PortalException(Code) | | Create PortalException from Errorid, trace, and throw it.
Parameters: eid - ErrorID to use to generate PortalException Parameters: parm - Additional error information throws: PortalException - |
trimStackTrace | static String trimStackTrace(String stackTrace)(Code) | | Trims a String representation of a Stack Trace to remove
the portion of the trace that is in the servlet container layer.
Parameters: stackTrace - - String result of printStackTrace the stack trace with portions of the trace that dive into the containerlayer removed. |
|
|