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
Exception thrown during parsing signalling an unrecognized option was seen.- Version:
- $Id: UnrecognizedOptionException.java 1443102 2013-02-06 18:12:16Z tn $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
option
The unrecognized optionprivate static long
serialVersionUID
This exceptionserialVersionUID
.
-
Constructor Summary
Constructors Constructor Description UnrecognizedOptionException(java.lang.String message)
Construct a newUnrecognizedArgumentException
with the specified detail message.UnrecognizedOptionException(java.lang.String message, java.lang.String option)
Construct 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()
Returns the unrecognized option.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
This exceptionserialVersionUID
.- See Also:
- Constant Field Values
-
option
private java.lang.String option
The unrecognized option
-
-
Constructor Detail
-
UnrecognizedOptionException
public UnrecognizedOptionException(java.lang.String message)
Construct a newUnrecognizedArgumentException
with the specified detail message.- Parameters:
message
- the detail message
-
UnrecognizedOptionException
public UnrecognizedOptionException(java.lang.String message, java.lang.String option)
Construct a newUnrecognizedArgumentException
with the specified option and detail message.- Parameters:
message
- the detail messageoption
- the unrecognized option- Since:
- 1.2
-
-