Package net.shibboleth.metadata.cli
Class SimpleCommandLine.ErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.shibboleth.metadata.cli.SimpleCommandLine.ErrorException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SimpleCommandLine
Exception to be thrown during processing. Carries an error
code to be reported as the CLI result.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intCLI error code to return on exiting the JVM.private static final longserialVersionUID required for all exceptions. -
Constructor Summary
ConstructorsConstructorDescriptionErrorException(int errorCode, String message) Constructor.ErrorException(int errorCode, String message, Throwable cause) Constructor. -
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 serialVersionUIDserialVersionUID required for all exceptions.- See Also:
-
error
private final int errorCLI error code to return on exiting the JVM.
-
-
Constructor Details
-
ErrorException
Constructor.- Parameters:
errorCode- error code to report on exitmessage- message to report on exitcause- underlying cause of the error
-
ErrorException
ErrorException(int errorCode, @Nonnull String message) Constructor.- Parameters:
errorCode- error code to report on exitmessage- message to report on exit
-