1
2
3
4
5
6 package gov.nist.secauto.metaschema.cli.processor;
7
8 import org.apache.commons.cli.Option;
9 import org.apache.commons.cli.ParseException;
10
11 import edu.umd.cs.findbugs.annotations.NonNull;
12 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
13
14
15
16
17
18 public class InvalidArgumentException
19 extends ParseException {
20
21
22
23
24 private static final long serialVersionUID = 1L;
25
26
27 private Option option;
28
29
30
31
32
33
34
35 public InvalidArgumentException(String message) {
36 super(message);
37 }
38
39
40
41
42
43
44
45 @SuppressFBWarnings(value = "EI_EXPOSE_REP", justification = "intended to expose option for error handling")
46 public Option getOption() {
47 return option;
48 }
49
50
51
52
53
54
55
56
57 @SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "intended to expose option for error handling")
58 public void setOption(@NonNull Option option) {
59 this.option = option;
60 }
61 }