org.springframework.jdbc
Class SQLWarningException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.springframework.core.NestedRuntimeException
                  extended byorg.springframework.dao.DataAccessException
                      extended byorg.springframework.dao.UncategorizedDataAccessException
                          extended byorg.springframework.jdbc.SQLWarningException
All Implemented Interfaces:
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 msg, java.sql.SQLWarning ex)
          Constructor for ConnectionFactoryException.
 
Method Summary
 java.sql.SQLWarning SQLWarning()
          Return the SQLWarning.
 
Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, 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 msg,
                           java.sql.SQLWarning ex)
Constructor for ConnectionFactoryException.

Parameters:
msg - message
ex - JDBC warning
Method Detail

SQLWarning

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



Copyright (C) 2003-2004 The Spring Framework Project.