|
|
|
@ -27,7 +27,7 @@ import org.springframework.lang.Nullable; |
|
|
|
* |
|
|
|
* |
|
|
|
* <p>This exception hierarchy aims to let user code find and handle the |
|
|
|
* <p>This exception hierarchy aims to let user code find and handle the |
|
|
|
* kind of error encountered without knowing the details of the particular |
|
|
|
* kind of error encountered without knowing the details of the particular |
|
|
|
* data access API in use (e.g. JDBC). Thus it is possible to react to an |
|
|
|
* data access API in use (e.g. JDBC). Thus, it is possible to react to an |
|
|
|
* optimistic locking failure without knowing that JDBC is being used. |
|
|
|
* optimistic locking failure without knowing that JDBC is being used. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p>As this class is a runtime exception, there is no need for user code |
|
|
|
* <p>As this class is a runtime exception, there is no need for user code |
|
|
|
@ -50,7 +50,7 @@ public abstract class DataAccessException extends NestedRuntimeException { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Constructor for DataAccessException. |
|
|
|
* Constructor for DataAccessException. |
|
|
|
* @param msg the detail message |
|
|
|
* @param msg the detail message |
|
|
|
* @param cause the root cause (usually from using a underlying |
|
|
|
* @param cause the root cause (usually from using an underlying |
|
|
|
* data access API such as JDBC) |
|
|
|
* data access API such as JDBC) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public DataAccessException(@Nullable String msg, @Nullable Throwable cause) { |
|
|
|
public DataAccessException(@Nullable String msg, @Nullable Throwable cause) { |
|
|
|
|