KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > jdo > JDOOptimisticVerificationException


1 /*
2  * Copyright 2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 /*
18  * JDOOptimisticVerificationException.java
19  *
20  */

21
22 package javax.jdo;
23
24 /** This class represents optimistic verification failures. The nested
25  * exception array contains an exception for each instance that failed
26  * the optimistic verification.
27  *
28  * @since 1.0.1
29  * @version 1.0.1
30  */

31 public class JDOOptimisticVerificationException extends JDOFatalDataStoreException {
32
33   /**
34    * Constructs a new <code>JDOOptimisticVerificationException</code> without a detail message.
35    */

36   public JDOOptimisticVerificationException() {
37   }
38   
39
40   /**
41    * Constructs a new <code>JDOOptimisticVerificationException</code> with the specified detail message.
42    * @param msg the detail message.
43    */

44   public JDOOptimisticVerificationException(String JavaDoc msg) {
45     super(msg);
46   }
47
48   /** Constructs a new <code>JDOOptimisticVerificationException</code> with the specified detail message
49    * and failed object.
50    * @param msg the detail message.
51    * @param failed the failed object.
52    */

53   public JDOOptimisticVerificationException(String JavaDoc msg, Object JavaDoc failed) {
54     super(msg, failed);
55   }
56   
57   /**
58    * Constructs a new <code>JDOOptimisticVerificationException</code> with the specified
59    * detail message and nested <code>Throwable</code>s.
60    * @param msg the detail message.
61    * @param nested the nested <code>Throwable[]</code>.
62    */

63   public JDOOptimisticVerificationException(String JavaDoc msg, Throwable JavaDoc[] nested) {
64     super(msg, nested);
65   }
66
67 }
68
69
Popular Tags