public class SQLWarningException extends UncategorizedDataAccessException
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.
JdbcTemplate.setIgnoreWarnings(boolean)
,
Serialized FormConstructor and Description |
---|
SQLWarningException(String msg,
SQLWarning ex)
Constructor for SQLWarningException.
|
Modifier and Type | Method and Description |
---|---|
SQLWarning |
getSQLWarning()
Return the underlying
SQLWarning . |
SQLWarning |
SQLWarning()
Deprecated.
as of 5.3.29, in favor of
getSQLWarning() |
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SQLWarningException(String msg, SQLWarning ex)
msg
- the detail messageex
- the JDBC warningpublic SQLWarning getSQLWarning()
SQLWarning
.@Deprecated public SQLWarning SQLWarning()
getSQLWarning()
SQLWarning
.