| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.logicalcobwebs.proxool.FatalSqlExceptionHelper
class FatalSqlExceptionHelper
Will wrap up exceptions in another exception which can be defined at runtime.
| Field Summary | |
|---|---|
| private static Log | LOG | 
| Constructor Summary | |
|---|---|
| FatalSqlExceptionHelper() | |
| Method Summary | |
|---|---|
| protected static java.lang.Throwable | getCause(java.lang.Throwable t)Tries to drill down into an exception to find its cause. | 
| private static java.lang.reflect.Method | getMethod(java.lang.Object o,
          java.lang.String methodName) | 
| protected static boolean | testException(ConnectionPoolDefinitionIF cpd,
              java.lang.Throwable t)Test to see if an exception is a fatal one | 
| protected static boolean | testException(ConnectionPoolDefinitionIF cpd,
              java.lang.Throwable t,
              int level)Test to see if an exception is a fatal one | 
| protected static void | throwFatalSQLException(java.lang.String className,
                       java.lang.Throwable originalException)Throws a wrapped SQLException if a wrapper is defined | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private static final Log LOG
| Constructor Detail | 
|---|
FatalSqlExceptionHelper()
| Method Detail | 
|---|
protected static void throwFatalSQLException(java.lang.String className,
                                             java.lang.Throwable originalException)
                                      throws ProxoolException,
                                             java.sql.SQLException,
                                             java.lang.RuntimeException
className - the classname of the wrapping exception (must be either a RuntimeException or
 an SQLException). If null, then the original exception is rethrown.originalException - the orginal exception
ProxoolException - if there is an unexpected error with wrapping the exception
java.sql.SQLException - either the original exception, or a wrapped version of it
java.lang.RuntimeException - a wrapped up version of the orginal
protected static boolean testException(ConnectionPoolDefinitionIF cpd,
                                       java.lang.Throwable t)
cpd - the definition so we can find out what a fatal exception looks liket - the exception to test
protected static boolean testException(ConnectionPoolDefinitionIF cpd,
                                       java.lang.Throwable t,
                                       int level)
cpd - the definition so we can find out what a fatal exception looks liket - the exception to testlevel - the recursion level (max 20)
protected static java.lang.Throwable getCause(java.lang.Throwable t)
t - the exception to look inside
private static java.lang.reflect.Method getMethod(java.lang.Object o,
                                                  java.lang.String methodName)
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||