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  package org.apache.jdo.model;
18  
19  /***
20   * This exception indicates a problem during model update.
21   *
22   * @author Michael Bouschen
23   * @since JDO 1.0.1
24   */
25  public class ModelVetoException 
26      extends ModelException
27  {
28      /***
29       * Creates new <code>ModelVetoException</code> without detail message.
30       */
31      public ModelVetoException() 
32      {
33      }
34      
35      /***
36       * Constructs a <code>ModelVetoException</code> with the specified
37       * detail message.
38       * @param msg the detail message.
39       */
40      public ModelVetoException(String msg)
41      {
42          super(msg);
43      }
44  
45      /*** 
46       * Constructs a new <code>ModelVetoException</code> with the specified
47       * cause.
48       * @param cause the cause <code>Throwable</code>.
49       */
50      public ModelVetoException(Throwable cause) 
51      {
52          super("", cause);
53      }
54  
55      /*** 
56       * Constructs a new <code>ModelVetoException</code> with the specified
57       * detail message and cause.
58       * @param msg the detail message.
59       * @param cause the cause <code>Throwable</code>.
60       */
61      public ModelVetoException(String msg, Throwable cause) 
62      {
63          super(msg, cause);
64      }
65  
66  }