Package org.apache.sis.console
Class InvalidOptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.sis.console.InvalidOptionException
- All Implemented Interfaces:
Serializable
Thrown when an illegal option has been given by the user on the command-line.
- Since:
- 0.3
- Version:
- 0.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The name of the invalid option.private static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidOptionException
(String message, String option) Constructs an exception with the specified detail message.InvalidOptionException
(String message, Throwable cause, String option) Constructs an exception with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
option
The name of the invalid option.
-
-
Constructor Details
-
InvalidOptionException
Constructs an exception with the specified detail message.- Parameters:
message
- the detail message.option
- the name of the invalid option.
-
InvalidOptionException
Constructs an exception with the specified detail message and cause.- Parameters:
message
- the detail message.cause
- the cause of this exception.option
- the name of the invalid option.
-
-
Method Details
-
getOption
Returns the name of the invalid option.- Returns:
- the name of the invalid option.
-