Package org.flasby.cli
Class MissingRequiredOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.flasby.cli.OptionException
org.flasby.cli.MissingRequiredOptionException
- All Implemented Interfaces:
Serializable
- Author:
- flasbyst
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns a localised message using an MLS key defined as the options mls key with "missing" appended.Methods inherited from class org.flasby.cli.OptionException
getOptions
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingRequiredOptionException
-
-
Method Details
-
getOption
- Specified by:
getOption
in classOptionException
-
getLocalizedMessage
returns a localised message using an MLS key defined as the options mls key with "missing" appended. This message shoudl have a single parameter {0} which will be replaced by the unknown argument. For example: org.flasby.beantest.missing=Missing required option ''{0}''- Overrides:
getLocalizedMessage
in classThrowable
-