Package org.apache.tomcat.jdbc.pool
Class TrapException
java.lang.Object
org.apache.tomcat.jdbc.pool.JdbcInterceptor
org.apache.tomcat.jdbc.pool.TrapException
- All Implemented Interfaces:
- InvocationHandler
Interceptor that traps any unhandled exception types and throws an exception that has been declared by the method
 called, or throw an SQLException if it is declared.
 If the caught exception is not declared, and the method doesn't throw SQLException, then this interceptor will
 throw a RuntimeException
- 
Field SummaryFields inherited from class org.apache.tomcat.jdbc.pool.JdbcInterceptorCLOSE_VAL, EQUALS_VAL, GETCONNECTION_VAL, HASHCODE_VAL, ISCLOSED_VAL, ISVALID_VAL, ISWRAPPERFOR_VAL, properties, TOSTRING_VAL, UNWRAP_VAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets invoked each time an operation onConnectionis invoked.booleanisDeclaredException(Method m, Class<?> clazz) voidreset(ConnectionPool parent, PooledConnection con) no-op for this interceptor. no state is stored.Methods inherited from class org.apache.tomcat.jdbc.pool.JdbcInterceptorcompare, compare, disconnected, getNext, getProperties, isUseEquals, poolClosed, poolStarted, setNext, setProperties, setUseEquals
- 
Constructor Details- 
TrapExceptionpublic TrapException()
 
- 
- 
Method Details- 
invokeDescription copied from class:JdbcInterceptorGets invoked each time an operation onConnectionis invoked.- Specified by:
- invokein interface- InvocationHandler
- Overrides:
- invokein class- JdbcInterceptor
- Throws:
- Throwable
 
- 
isDeclaredException
- 
resetno-op for this interceptor. no state is stored.- Specified by:
- resetin class- JdbcInterceptor
- Parameters:
- parent- - the connection pool owning the connection
- con- - the pooled connection
 
 
-