Package org.springframework.jdbc
Class SQLWarningException
- All Implemented Interfaces:
Serializable
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.
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionSQLWarningException
(String msg, SQLWarning ex) Constructor for SQLWarningException. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SQLWarningException
Constructor for SQLWarningException.- Parameters:
msg
- the detail messageex
- the JDBC warning
-
-
Method Details
-
getSQLWarning
Return the underlyingSQLWarning
.- Since:
- 5.3.29
-
SQLWarning
Deprecated.as of 5.3.29, in favor ofgetSQLWarning()
Return the underlyingSQLWarning
.
-
getSQLWarning()