Package org.apache.commons.cli
Class UnrecognizedOptionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.cli.ParseException
-
- org.apache.commons.cli.UnrecognizedOptionException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AmbiguousOptionException
public class UnrecognizedOptionException extends ParseException
Thrown during parsing signaling an unrecognized option.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
option
The unrecognized option.private static long
serialVersionUID
This exceptionserialVersionUID
.
-
Constructor Summary
Constructors Constructor Description UnrecognizedOptionException(java.lang.String message)
Constructs a newUnrecognizedArgumentException
with the specified detail message.UnrecognizedOptionException(java.lang.String message, java.lang.String option)
Constructs a newUnrecognizedArgumentException
with the specified option and detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOption()
Gets the unrecognized option.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
This exceptionserialVersionUID
.- See Also:
- Constant Field Values
-
option
private final java.lang.String option
The unrecognized option.
-
-
Constructor Detail
-
UnrecognizedOptionException
public UnrecognizedOptionException(java.lang.String message)
Constructs a newUnrecognizedArgumentException
with the specified detail message.- Parameters:
message
- the detail message
-
UnrecognizedOptionException
public UnrecognizedOptionException(java.lang.String message, java.lang.String option)
Constructs a newUnrecognizedArgumentException
with the specified option and detail message.- Parameters:
message
- the detail messageoption
- the unrecognized option- Since:
- 1.2
-
-