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   * JDOUserCallbackException.java
20   *
21   */
22  
23  package javax.jdo;
24  
25  /** This class represents exceptions caused by exceptions thrown
26   * during execution of callbacks or listeners.
27   *
28   * @version 2.0
29   */
30  public class JDOUserCallbackException extends JDOUserException {
31  
32    /**
33     * Constructs a new <code>JDOUserCallbackException</code> 
34     * without a detail message.
35     */
36    public JDOUserCallbackException() {
37    }
38  
39    /**
40     * Constructs a new <code>JDOUserCallbackException</code> 
41     * with the specified detail message.
42     * @param msg the detail message.
43     */
44    public JDOUserCallbackException(String msg) {
45      super(msg);
46    }
47  
48    /**
49     * Constructs a new <code>JDOUserCallbackException</code> with the
50     * specified detail message and nested <code>Throwable</code>s.
51     * @param msg the detail message.
52     * @param nested the nested <code>Throwable[]</code>.
53     */
54    public JDOUserCallbackException(String msg, Throwable[] nested) {
55      super(msg, nested);
56    }
57  
58    /**
59     * Constructs a new <code>JDOUserCallbackException</code> with the
60     * specified detail message and nested <code>Throwable</code>s.
61     * @param msg the detail message.
62     * @param nested the nested <code>Throwable</code>.
63     */
64    public JDOUserCallbackException(String msg, Throwable nested) {
65      super(msg, nested);
66    }
67    
68    /** Constructs a new <code>JDOUserCallbackException</code> with the specified detail message
69     * and failed object.
70     * @param msg the detail message.
71     * @param failed the failed object.
72     */
73    public JDOUserCallbackException(String msg, Object failed) {
74      super(msg, failed);
75    }
76    
77    /** Constructs a new <code>JDOUserCallbackException</code> with the specified detail message,
78     * nested <code>Throwable</code>s, and failed object.
79     * @param msg the detail message.
80     * @param nested the nested <code>Throwable[]</code>.
81     * @param failed the failed object.
82     */
83    public JDOUserCallbackException(String msg, Throwable[] nested, Object failed) {
84      super(msg, nested, failed);
85    }
86    
87    /** Constructs a new <code>JDOUserException</code> with the specified detail message,
88     * nested <code>Throwable</code>s, and failed object.
89     * @param msg the detail message.
90     * @param nested the nested <code>Throwable</code>.
91     * @param failed the failed object.
92     */
93    public JDOUserCallbackException(String msg, Throwable nested, Object failed) {
94      super(msg, nested, failed);
95    }
96  }
97