Class MissingArgumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.aspectran.shell.command.option.OptionParserException
-
- com.aspectran.shell.command.option.MissingArgumentException
-
- All Implemented Interfaces:
java.io.Serializable
public class MissingArgumentException extends OptionParserException
Thrown when an option requiring an argument is not provided with an argument.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MissingArgumentException(Option option)Construct a newMissingArgumentExceptionwith the specified detail message.MissingArgumentException(java.lang.String message)Construct a newMissingArgumentExceptionwith the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptiongetOption()Return the option requiring an argument that wasn't provided on the command line.
-
-
-
Constructor Detail
-
MissingArgumentException
public MissingArgumentException(java.lang.String message)
Construct a newMissingArgumentExceptionwith the specified detail message.- Parameters:
message- the detail message
-
MissingArgumentException
public MissingArgumentException(Option option)
Construct a newMissingArgumentExceptionwith the specified detail message.- Parameters:
option- the option requiring an argument
-
-
Method Detail
-
getOption
public Option getOption()
Return the option requiring an argument that wasn't provided on the command line.- Returns:
- the related option
-
-