public class SQLWarningException extends UncategorizedDataAccessException
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.
JdbcTemplate.setIgnoreWarnings(boolean)
,
Serialized FormConstructor and Description |
---|
SQLWarningException(java.lang.String msg,
java.sql.SQLWarning ex)
Constructor for SQLWarningException.
|
Modifier and Type | Method and Description |
---|---|
java.sql.SQLWarning |
SQLWarning()
Return the underlying SQLWarning.
|
contains, getMessage, getMostSpecificCause, getRootCause