endExecutionWithError method
endExecutionWithData
will issue a CommandResult with
data: null
error: Exeption(message
)
isExecuting : false
Implementation
void endExecutionWithError(String message) {
_commandResultsSubject.add(CommandResult(
lastPassedValueToExecute,
_includeLastResultInCommandResults ? lastResult : null,
Exception(message),
false));
_canExecuteSubject.add(true);
}