01: /*
02: * Copyright 2002-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.springframework.dao;
18:
19: import org.springframework.dao.DataAccessException;
20:
21: /**
22: * Root of the hierarchy of data access exceptions that are considered transient - where a previoulsy
23: * failed operation might be able to succeed when the operation is retried without any intervention by
24: * application-level functionality.
25: *
26: * @author Thomas Risberg
27: * @since 2.5
28: * @see java.sql.SQLTransientException
29: */
30: public abstract class TransientDataAccessException extends
31: DataAccessException {
32:
33: /**
34: * Constructor for TransientDataAccessException.
35: * @param msg the detail message
36: */
37: public TransientDataAccessException(String msg) {
38: super (msg);
39: }
40:
41: /**
42: * Constructor for TransientDataAccessException.
43: * @param msg the detail message
44: * @param cause the root cause (usually from using a underlying
45: * data access API such as JDBC)
46: */
47: public TransientDataAccessException(String msg, Throwable cause) {
48: super(msg, cause);
49: }
50:
51: }
|