View Javadoc

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 
35     * detail message.
36     */
37    public JDOOptimisticVerificationException() {
38    }
39    
40  
41    /***
42     * Constructs a new <code>JDOOptimisticVerificationException</code> with the 
43     * specified detail message.
44     * @param msg the detail message.
45     */
46    public JDOOptimisticVerificationException(String msg) {
47      super(msg);
48    }
49  
50    /*** Constructs a new <code>JDOOptimisticVerificationException</code> with the 
51     * specified detail message and failed object.
52     * @param msg the detail message.
53     * @param failed the failed object.
54     */
55    public JDOOptimisticVerificationException(String msg, Object failed) {
56      super(msg, failed);
57    }
58    
59    /***
60     * Constructs a new <code>JDOOptimisticVerificationException</code> with the 
61     * specified detail message and nested <code>Throwable</code>s.
62     * @param msg the detail message.
63     * @param nested the nested <code>Throwable[]</code>.
64     */
65    public JDOOptimisticVerificationException(String msg, Throwable[] nested) {
66      super(msg, nested);
67    }
68  
69  }
70