spring-framework / org.springframework.jdbc / SQLWarningException

SQLWarningException

open class SQLWarningException : UncategorizedDataAccessException

Exception thrown when we're not ignoring java.sql.SQLWarning.

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.

Author
Rod Johnson

Author
Juergen Hoeller

See Also
org.springframework.jdbc.core.JdbcTemplate#setIgnoreWarnings

Constructors

<init>

SQLWarningException(msg: String, ex: SQLWarning)

Constructor for SQLWarningException.

Functions

SQLWarning

open fun SQLWarning(): SQLWarning

Return the underlying SQLWarning.