| java.lang.Object org.logicalcobwebs.proxool.FatalSqlExceptionHelper
FatalSqlExceptionHelper | class FatalSqlExceptionHelper (Code) | | Will wrap up exceptions in another exception which can be defined at runtime.
version: $Revision: 1.5 $, $Date: 2006/01/18 14:40:01 $ author: billhorsman author: $Author: billhorsman $ (current maintainer) |
getCause | protected static Throwable getCause(Throwable t)(Code) | | Tries to drill down into an exception to find its cause. Only goes one level deep.
Uses reflection to look at getCause(), getTargetException(), getRootCause() and
finally getOriginalException() methods to see if it can find one. Doesn't throw
an error - it will just log a warning and return a null if nothing was found.
Parameters: t - the exception to look inside the original exception or null if none was found. |
testException | protected static boolean testException(ConnectionPoolDefinitionIF cpd, Throwable t)(Code) | | Test to see if an exception is a fatal one
Parameters: cpd - the definition so we can find out what a fatal exception looks like Parameters: t - the exception to test true if it is fatal |
testException | protected static boolean testException(ConnectionPoolDefinitionIF cpd, Throwable t, int level)(Code) | | Test to see if an exception is a fatal one
Parameters: cpd - the definition so we can find out what a fatal exception looks like Parameters: t - the exception to test Parameters: level - the recursion level (max 20) true if it is fatal |
throwFatalSQLException | protected static void throwFatalSQLException(String className, Throwable originalException) throws ProxoolException, SQLException, RuntimeException(Code) | | Throws a wrapped SQLException if a wrapper is defined
Parameters: className - the classname of the wrapping exception (must be either a RuntimeException oran SQLException). If null, then the original exception is rethrown. Parameters: originalException - the orginal exception throws: ProxoolException - if there is an unexpected error with wrapping the exception throws: SQLException - either the original exception, or a wrapped version of it throws: RuntimeException - a wrapped up version of the orginal |
|
|