com.interface21.jdbc.core
Class SQLWarningException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.interface21.core.NestedRuntimeException
                          |
                          +--com.interface21.dao.DataAccessException
                                |
                                +--com.interface21.dao.UncategorizedDataAccessException
                                      |
                                      +--com.interface21.jdbc.core.SQLWarningException
All Implemented Interfaces:
HasRootCause, java.io.Serializable

public class SQLWarningException
extends UncategorizedDataAccessException

Exception thrown when we're not ignoring warnings. If such an exception is thrown, the operation completed, so we will need to explicitly roll it back if we're not happy on looking at the warning. We might choose to ignore (or merely log) the warning and throw the exception away.

Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
SQLWarningException(java.lang.String mesg, java.sql.SQLWarning ex)
          Constructor for ConnectionFactoryException.
 
Method Summary
 java.sql.SQLWarning SQLWarning()
          Return the SQLWarning.
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLWarningException

public SQLWarningException(java.lang.String mesg,
                           java.sql.SQLWarning ex)
Constructor for ConnectionFactoryException.
Parameters:
s - message
ex - JDBC warning
Method Detail

SQLWarning

public java.sql.SQLWarning SQLWarning()
Return the SQLWarning.
Returns:
the SQLWarning


Rod Johnson and Spring contributors 2001-2003.