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 public class InvalidArgumentException
15 extends ParseException {
16
17
18
19
20 private static final long serialVersionUID = 1L;
21
22
23 private Option option;
24
25
26
27
28
29
30
31 public InvalidArgumentException(String message) {
32 super(message);
33 }
34
35
36
37
38
39
40
41 @SuppressFBWarnings(value = "EI_EXPOSE_REP", justification = "intended to expose option for error handling")
42 public Option getOption() {
43 return option;
44 }
45
46
47
48
49
50
51
52
53 @SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "intended to expose option for error handling")
54 public void setOption(@NonNull Option option) {
55 this.option = option;
56 }
57 }