Top Description Constructors Methods
org.springframework.jdbc

public Class SQLWarningException

extends UncategorizedDataAccessException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.sql.SQLWarning, org.springframework.dao.UncategorizedDataAccessException

Exception thrown when we're not ignoring SQLWarnings.

If an 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.

Authors
Rod Johnson, Juergen Hoeller
See Also
org.springframework.jdbc.core.JdbcTemplate#setIgnoreWarnings

Constructor Summary

AccessConstructor and Description
public
SQLWarningException(String
the detail message
msg
,
SQLWarning
the JDBC warning
ex
)

Constructor for SQLWarningException.

Method Summary

Modifier and TypeMethod and Description
public SQLWarning
getSQLWarning()

Return the underlying SQLWarning.

public SQLWarning
SQLWarning()
Deprecated since 5.3.29. as of 5.3.29, in favor of getSQLWarning()

Return the underlying SQLWarning.

Constructor Detail

SQLWarningExceptionback to summary
public SQLWarningException(String msg, SQLWarning ex)

Constructor for SQLWarningException.

Parameters
msg:String

the detail message

ex:SQLWarning

the JDBC warning

Method Detail

getSQLWarningback to summary
public SQLWarning getSQLWarning()

Return the underlying SQLWarning.

Since
5.3.29
SQLWarningback to summary
public SQLWarning SQLWarning()

Deprecated

since 5.3.29.

as of 5.3.29, in favor of getSQLWarning()

Return the underlying SQLWarning.

Annotations
@Deprecated
since:5.3.29