public class DataAccessException extends RuntimeException
DataOperations
or AsyncDataOperations
.
Using SqlProvider
is highly suggested. This allows the exception to communicate the sql that issued the problem.
Constructor and Description |
---|
DataAccessException(String msg) |
DataAccessException(String msg,
SQLException e) |
DataAccessException(String msg,
@Nullable String sql,
SQLException e) |
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getSql()
Gets the sql statement that provoked this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DataAccessException(String msg)
public DataAccessException(String msg, SQLException e)
public DataAccessException(String msg, @Nullable @Nullable String sql, SQLException e)
@Nullable public @Nullable String getSql()
Copyright © 2021. All rights reserved.