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

private static class SimpleCommandLine.ErrorException extends Exception
Exception to be thrown during processing. Carries an error code to be reported as the CLI result.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      serialVersionUID required for all exceptions.
      See Also:
    • error

      private final int error
      CLI error code to return on exiting the JVM.
  • Constructor Details

    • ErrorException

      ErrorException(int errorCode, @Nonnull String message, Throwable cause)
      Constructor.
      Parameters:
      errorCode - error code to report on exit
      message - message to report on exit
      cause - underlying cause of the error
    • ErrorException

      ErrorException(int errorCode, @Nonnull String message)
      Constructor.
      Parameters:
      errorCode - error code to report on exit
      message - message to report on exit