Class CommandExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ca.mcscert.jpipe.commands.CommandExecutionException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionCommandExecutionException(Command failedCommand, Unit partialUnit, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionThe command whose execution failed.The unit as it was at the moment of failure.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandExecutionException
-
-
Method Details
-
failedCommand
The command whose execution failed. -
partialUnit
The unit as it was at the moment of failure.
-