Class CommandExecutionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ca.mcscert.jpipe.commands.CommandExecutionException
All Implemented Interfaces:
Serializable

public final class CommandExecutionException extends RuntimeException
Thrown by ExecutionEngine when a command's condition is satisfied but its execution throws a RuntimeException.

Carries the command that failed and the partially-built Unit so callers can emit a meaningful diagnostic instead of propagating the raw exception.

See Also:
  • Constructor Details

    • CommandExecutionException

      public CommandExecutionException(Command failedCommand, Unit partialUnit, Throwable cause)
  • Method Details

    • failedCommand

      public Command failedCommand()
      The command whose execution failed.
    • partialUnit

      public Unit partialUnit()
      The unit as it was at the moment of failure.