Class CommandExecutionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
gov.nist.secauto.metaschema.cli.processor.command.CommandExecutionException
All Implemented Interfaces:
Serializable

For use in commands to short-circut command execution.
See Also:
  • Constructor Details

    • CommandExecutionException

      public CommandExecutionException(@NonNull ExitCode code)
      Constructs a new exception with the provided code, and no message or cause.
      Parameters:
      code - the exit code associated with this error
    • CommandExecutionException

      public CommandExecutionException(@NonNull ExitCode code, String message)
      Constructs a new exception with the provided code, message, and no cause.
      Parameters:
      code - the exit code associated with this error
      message - the exception message
    • CommandExecutionException

      public CommandExecutionException(@NonNull ExitCode code, Throwable cause)
      Constructs a new exception with no message and the provided code and cause.
      Parameters:
      code - the exit code associated with this error
      cause - the original exception cause
    • CommandExecutionException

      public CommandExecutionException(@NonNull ExitCode code, String message, Throwable cause)
      Constructs a new exception with the provided code, message, and cause.
      Parameters:
      code - the exit code associated with this error
      message - the exception message
      cause - the original exception cause
  • Method Details