| java.lang.Object org.kuali.core.util.ExceptionUtils
ExceptionUtils | public class ExceptionUtils (Code) | | Adapts Exception.print stack trace to print its output to a Logger.
|
describeStackLevel | public static String describeStackLevel(Throwable t, int level)(Code) | | Parameters: level - String containing the name of the method at the given level from the top of the stack |
describeStackLevel | public static String describeStackLevel(int level)(Code) | | Parameters: level - String containing the name of the method at the given level from the top of the stack (not including this method) |
describeStackLevels | public static String describeStackLevels(Throwable t, int fromLevel, int toLevel)(Code) | | Parameters: fromLevel - Parameters: toLevel - String containing the names of the methods at the given levels from the top of the stack |
describeStackLevels | public static String describeStackLevels(int fromLevel, int toLevel)(Code) | | Parameters: fromLevel - Parameters: toLevel - String containing the names of the methods at the given levels from the top of the stack (not including this method) |
initServletExceptionCauses | public void initServletExceptionCauses(Throwable t)(Code) | | Initializes the JDK 1.4 cause of any ServletExceptions in the given cause chain. This is a work-around for the lack of
support in the Servlet 2.4 API and Tomcat 5. It allows anything using Throwable.printStackTrace() (e.g., log4j) to include
the cause chain. If a ServletException has a rootCause but it's JDK 1.4 cause has already been initialized to null, then the
chain ends there. I think Tomcat's exception logging goes beyond this, to follow cause or rootCause depending on the
Exception's type and log each one individually instead of using Throwable.printStackTrace(). But that only helps Tomcat's log
file.
Parameters: t - the head of the cause chain to initialize |
logStackTrace | public static void logStackTrace(Logger logger, Throwable t)(Code) | | Logs the stack trace of the given throwable to the given logger.
Parameters: logger - Parameters: t - |
logStackTrace | public static void logStackTrace(Log log, Throwable t)(Code) | | Logs the stack trace of the given throwable to the given logger.
Parameters: log - Parameters: t - |
|
|