Class UnrecognizedOptionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.aspectran.shell.command.option.OptionParserException
-
- com.aspectran.shell.command.option.UnrecognizedOptionException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AmbiguousOptionException
public class UnrecognizedOptionException extends OptionParserException
Exception thrown during parsing signalling an unrecognized option was seen.- 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
-
-