Class InvalidArgumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.commons.cli.ParseException
-
- gov.nist.secauto.metaschema.cli.processor.InvalidArgumentException
-
- All Implemented Interfaces:
Serializable
public class InvalidArgumentException extends org.apache.commons.cli.ParseException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidArgumentException(String message)
Generate a new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.cli.Option
getOption()
Return the option requiring an argument that wasn't provided on the command line.void
setOption(org.apache.commons.cli.Option option)
Assign the option requiring an argument that wasn't provided on the command line.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidArgumentException
public InvalidArgumentException(String message)
Generate a new exception.- Parameters:
message
- the message
-
-
Method Detail
-
getOption
public org.apache.commons.cli.Option getOption()
Return the option requiring an argument that wasn't provided on the command line.- Returns:
- the related option
-
setOption
public void setOption(@NonNull org.apache.commons.cli.Option option)
Assign the option requiring an argument that wasn't provided on the command line.- Parameters:
option
- the option to set
-
-