Class SQLWarningException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.dao.DataAccessException
                      extended by org.springframework.dao.UncategorizedDataAccessException
                          extended by org.springframework.jdbc.SQLWarningException
All Implemented Interfaces:

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.

Rod Johnson
See Also:
Serialized Form

Constructor Summary
SQLWarningException(String msg, SQLWarning ex)
          Constructor for ConnectionFactoryException.
Method Summary
 SQLWarning SQLWarning()
          Return the SQLWarning.
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, 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


public SQLWarningException(String msg,
                           SQLWarning ex)
Constructor for ConnectionFactoryException.

msg - message
ex - JDBC warning
Method Detail


public SQLWarning SQLWarning()
Return the SQLWarning.

Copyright (c) 2002-2005 The Spring Framework Project.