Package com.Ostermiller.util
Class CmdLnArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.Ostermiller.util.CmdLnException
com.Ostermiller.util.CmdLnArgumentException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExtraCmdLnArgumentException,MissingCmdLnArgumentException
Exception thrown for a problem with a specific command line option.
More information about this class and code samples for suggested use are
available from ostermiller.org.
- Since:
- ostermillerutils 1.07.00
- Author:
- Stephen Ostermiller https://ostermiller.org/contact.pl?regarding=Java+Utilities
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the option that caused this exceptionGet the partial result with missing arguments.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getResult
Get the partial result with missing arguments.- Returns:
- the partial result
- Since:
- ostermillerutils 1.07.00
-
getOption
Get the option that caused this exception- Returns:
- the option
- Since:
- ostermillerutils 1.07.00
-
getMessage
- Overrides:
getMessagein classThrowable- Returns:
- message with the option name
- Since:
- ostermillerutils 1.07.00
-