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
public class UnrecognizedOptionException extends ParseException
Exception thrown during parsing signalling an unrecognized option was seen.- Version:
- $Revision: 680644 $, $Date: 2008-07-29 01:13:48 -0700 (Tue, 29 Jul 2008) $
- Author:
- bob mcwhiter (bob @ werken.com)
- See Also:
- Serialized Form
-
-
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.
-
-
-
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
-
-
Method Detail
-
getOption
public java.lang.String getOption()
Returns the unrecognized option.- Returns:
- the related option
- Since:
- 1.2
-
-