jrun.jsp.runtime
Class Utils

java.lang.Object
  |
  +--jrun.jsp.runtime.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static java.lang.String getStackTraceAsString(java.lang.Throwable t)
          Return stack trace as one string
static java.lang.String getStackTraceLine(java.lang.String t, java.lang.String method)
          Pull a line from the stack trace with the following method
static java.lang.String getStackTraceLine(java.lang.Throwable t, java.lang.String method)
          Pull a line from the stack trace with the following method
static int getStackTraceLineNumber(java.lang.String line)
          Pull a line from the stack trace with the following method
static int getStackTraceLineNumber(java.lang.Throwable t, java.lang.String method)
          Pull a line from the stack trace with the following method
static javax.servlet.ServletException handleException(java.lang.Throwable e, javax.servlet.jsp.PageContext pageContext)
          This handle's exceptions in the case where they don't specify an errorPage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

handleException

public static javax.servlet.ServletException handleException(java.lang.Throwable e,
                                                             javax.servlet.jsp.PageContext pageContext)
                                                      throws javax.servlet.ServletException,
                                                             java.io.IOException
This handle's exceptions in the case where they don't specify an errorPage.

getStackTraceAsString

public static java.lang.String getStackTraceAsString(java.lang.Throwable t)
Return stack trace as one string
Parameters:
t - The exception to get the stack trace from

getStackTraceLine

public static java.lang.String getStackTraceLine(java.lang.Throwable t,
                                                 java.lang.String method)
Pull a line from the stack trace with the following method
Parameters:
t - The exception to get the stack trace from

getStackTraceLine

public static java.lang.String getStackTraceLine(java.lang.String t,
                                                 java.lang.String method)
Pull a line from the stack trace with the following method
Parameters:
t - A String representation of the stacktrace

getStackTraceLineNumber

public static int getStackTraceLineNumber(java.lang.Throwable t,
                                          java.lang.String method)
Pull a line from the stack trace with the following method
Parameters:
t - The exception to get the stack trace from

getStackTraceLineNumber

public static int getStackTraceLineNumber(java.lang.String line)
Pull a line from the stack trace with the following method
Parameters:
t - A String representation of the stacktrace


Copyright � 2002 Macromedia Corporation. All Rights Reserved.