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(String msg,
SQLWarning ex)
Constructor for SQLWarningException.
|
Modifier and Type | Method and Description |
---|---|
SQLWarning |
SQLWarning()
Return the underlying SQLWarning.
|
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 SQLWarning()