View Javadoc

1   package org.apache.torque.generator.source;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import org.apache.torque.generator.GeneratorException;
23  
24  /*
25   * Licensed to the Apache Software Foundation (ASF) under one
26   * or more contributor license agreements.  See the NOTICE file
27   * distributed with this work for additional information
28   * regarding copyright ownership.  The ASF licenses this file
29   * to you under the Apache License, Version 2.0 (the
30   * "License"); you may not use this file except in compliance
31   * with the License.  You may obtain a copy of the License at
32   *
33   *   http://www.apache.org/licenses/LICENSE-2.0
34   *
35   * Unless required by applicable law or agreed to in writing,
36   * software distributed under the License is distributed on an
37   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
38   * KIND, either express or implied.  See the License for the
39   * specific language governing permissions and limitations
40   * under the License.
41   */
42  
43  /**
44   * This exception denotes that the source cannot be read.
45   */
46  public class SourceException extends GeneratorException
47  {
48      /**
49       * The version of the class
50       * (for serialisation and deserialisation purposes).
51       */
52      private static final long serialVersionUID = 1L;
53  
54      /**
55       * Constructs a SourceException without error message.
56       *
57       * @see Exception#Exception()
58       */
59      public SourceException()
60      {
61          super();
62      }
63  
64      /**
65       * Constructs a SourceException with the given error message.
66       *
67       * @param message the error message
68       *
69       * @see Exception#Exception(java.lang.String)
70       */
71      public SourceException(String message)
72      {
73          super(message);
74      }
75  
76      /**
77       * Constructs a SourceException which wraps another exception.
78       *
79       * @param cause The root cause of the exception, can be null.
80       *
81       * @see Exception#Exception(java.lang.Throwable)
82       */
83      public SourceException(Throwable cause)
84      {
85          super(cause);
86      }
87  
88      /**
89       * Constructs a SourceException which wraps another exception,
90       * and which has its own error message.
91       *
92       * @param message The error mesaage.
93       * @param cause The exception to wrap.
94       *
95       * @see Exception#Exception(java.lang.String, java.lang.Throwable)
96       */
97      public SourceException(String message, Throwable cause)
98      {
99          super(message, cause);
100     }
101 }