View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software 
12   * distributed under the License is distributed on an "AS IS" BASIS, 
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
14   * See the License for the specific language governing permissions and 
15   * limitations under the License.
16   */
17  
18  /*
19   * JDOOptimisticVerificationException.java
20   *
21   */
22  
23  package javax.jdo;
24  
25  /** This class represents optimistic verification failures.  The nested
26   * exception array contains an exception for each instance that failed
27   * the optimistic verification.
28   *
29   * @since 1.0.1
30   * @version 1.0.1
31   */
32  public class JDOOptimisticVerificationException extends JDOFatalDataStoreException {
33  
34    /**
35     * Constructs a new <code>JDOOptimisticVerificationException</code> without a 
36     * detail message.
37     */
38    public JDOOptimisticVerificationException() {
39    }
40    
41  
42    /**
43     * Constructs a new <code>JDOOptimisticVerificationException</code> with the 
44     * specified detail message.
45     * @param msg the detail message.
46     */
47    public JDOOptimisticVerificationException(String msg) {
48      super(msg);
49    }
50  
51    /** Constructs a new <code>JDOOptimisticVerificationException</code> with the 
52     * specified detail message and failed object.
53     * @param msg the detail message.
54     * @param failed the failed object.
55     */
56    public JDOOptimisticVerificationException(String msg, Object failed) {
57      super(msg, failed);
58    }
59    
60    /**
61     * Constructs a new <code>JDOOptimisticVerificationException</code> with the 
62     * specified detail message and nested <code>Throwable[]</code>s.
63     * @param msg the detail message.
64     * @param nested the nested <code>Throwable[]</code>.
65     */
66    public JDOOptimisticVerificationException(String msg, Throwable[] nested) {
67      super(msg, nested);
68    }
69    
70    /**
71     * Constructs a new <code>JDOOptimisticVerificationException</code> with the specified
72     * detail message, nested <code>Throwable</code>s, and failed object.
73     * @param msg the detail message.
74     * @param nested the nested <code>Throwable[]</code>.
75     * @param failed the failed object.
76     */
77    public JDOOptimisticVerificationException(String msg, Throwable[] nested, Object failed) {
78      super(msg, nested, failed);
79    }
80  
81    /**
82     * Constructs a new <code>JDOOptimisticVerificationException</code> with the specified
83     * detail message, nested <code>Throwable</code>s, and failed object.
84     * @param msg the detail message.
85     * @param nested the nested <code>Throwable</code>.
86     * @param failed the failed object.
87     */
88    public JDOOptimisticVerificationException(String msg, Throwable nested, Object failed) {
89      super(msg, nested, failed);
90    }
91  
92  }
93