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:
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
-
-
Constructor Summary
Constructors Constructor Description UnrecognizedOptionException(String message)
Construct a newUnrecognizedArgumentException
with the specified detail message.UnrecognizedOptionException(String message, 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 String
getOption()
Returns the unrecognized option.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnrecognizedOptionException
public UnrecognizedOptionException(String message)
Construct a newUnrecognizedArgumentException
with the specified detail message.- Parameters:
message
- the detail message
-
-
Method Detail
-
getOption
public String getOption()
Returns the unrecognized option.- Returns:
- the related option
- Since:
- 1.2
-
-