1 /*
2 * Copyright 2009 Werner Guttmann
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 package org.castor.core.annotationprocessing;
17
18 /**
19 * This Exception is thrown when a {@link TargetAwareAnnotationProcessor} can
20 * not process an annotation properly.
21 *
22 * @author Peter Schmidt
23 * @version 1.3.1
24 *
25 * @see TargetAwareAnnotationProcessor
26 * @see TargetAwareAnnotationProcessingService
27 */
28 public class AnnotationTargetException extends Exception {
29
30 /**
31 * Creates an instance of {@link AnnotationTargetException}.
32 */
33 public AnnotationTargetException() {
34 super();
35 }
36
37 /**
38 * Creates an instance of {@link AnnotationTargetException}.
39 *
40 * @param message
41 * Exception message.
42 * @param cause
43 * The original cause.
44 */
45 public AnnotationTargetException(String message, Throwable cause) {
46 super(message, cause);
47 }
48
49 /**
50 * Creates an instance of {@link AnnotationTargetException}.
51 *
52 * @param message
53 * Exception message.
54 */
55 public AnnotationTargetException(String message) {
56 super(message);
57 }
58
59 /**
60 * Creates an instance of {@link AnnotationTargetException}.
61 *
62 * @param cause
63 * The original cause.
64 */
65 public AnnotationTargetException(Throwable cause) {
66 super(cause);
67 }
68
69 }