1 package com.github.mygreen.supercsv.exception;
2
3 import java.lang.annotation.Annotation;
4
5 import org.supercsv.exception.SuperCsvException;
6
7
8
9
10
11
12
13
14 public class SuperCsvInvalidAnnotationException extends SuperCsvException {
15
16
17 private static final long serialVersionUID = 1L;
18
19 private final Annotation targetAnnotation;
20
21 public SuperCsvInvalidAnnotationException(final String message) {
22 super(message);
23 this.targetAnnotation = null;
24 }
25
26 public SuperCsvInvalidAnnotationException(final Annotation targetAnnotation, final String message) {
27 super(message);
28 this.targetAnnotation = targetAnnotation;
29 }
30
31 public SuperCsvInvalidAnnotationException(final Annotation targetAnnotation, final String message, final Throwable e) {
32 super(message, null, e);
33 this.targetAnnotation = targetAnnotation;
34 }
35
36
37
38
39
40 public Annotation getTargetAnnotation() {
41 return targetAnnotation;
42 }
43
44 }