View Javadoc
1   /*
2    * Copyright 2009 Werner Guttmann
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5    * in compliance with the License. You may obtain a copy of the License at
6    *
7    * http://www.apache.org/licenses/LICENSE-2.0
8    *
9    * Unless required by applicable law or agreed to in writing, software distributed under the License
10   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11   * or implied. See the License for the specific language governing permissions and limitations under
12   * the License.
13   */
14  package org.castor.core.annotationprocessing;
15  
16  /**
17   * This Exception is thrown when a {@link TargetAwareAnnotationProcessor} can not process an
18   * annotation properly.
19   * 
20   * @author Peter Schmidt
21   * @version 1.3.1
22   * 
23   * @see TargetAwareAnnotationProcessor
24   * @see TargetAwareAnnotationProcessingService
25   */
26  public class AnnotationTargetException extends Exception {
27  
28    /**
29     * Creates an instance of {@link AnnotationTargetException}.
30     */
31    public AnnotationTargetException() {
32      super();
33    }
34  
35    /**
36     * Creates an instance of {@link AnnotationTargetException}.
37     * 
38     * @param message Exception message.
39     * @param cause The original cause.
40     */
41    public AnnotationTargetException(String message, Throwable cause) {
42      super(message, cause);
43    }
44  
45    /**
46     * Creates an instance of {@link AnnotationTargetException}.
47     * 
48     * @param message Exception message.
49     */
50    public AnnotationTargetException(String message) {
51      super(message);
52    }
53  
54    /**
55     * Creates an instance of {@link AnnotationTargetException}.
56     * 
57     * @param cause The original cause.
58     */
59    public AnnotationTargetException(Throwable cause) {
60      super(cause);
61    }
62  
63  }