public class

SQLWarningException

extends UncategorizedDataAccessException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.dao.DataAccessException
             ↳ org.springframework.dao.NonTransientDataAccessException
               ↳ org.springframework.dao.UncategorizedDataAccessException
                 ↳ org.springframework.jdbc.SQLWarningException

Class Overview

Exception thrown when we're not ignoring java.sql.SQLWarning SQLWarnings.

If a SQLWarning is reported, the operation completed, so we will need to explicitly roll it back if we're not happy when looking at the warning. We might choose to ignore (and log) the warning, or to wrap and throw it in the shape of this SQLWarningException instead.

Summary

Public Constructors
SQLWarningException(String msg, SQLWarning ex)
Constructor for SQLWarningException.
Public Methods
SQLWarning SQLWarning()
Return the underlying SQLWarning.
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public SQLWarningException (String msg, SQLWarning ex)

Constructor for SQLWarningException.

Parameters
msg the detail message
ex the JDBC warning

Public Methods

public SQLWarning SQLWarning ()

Return the underlying SQLWarning.