endExecutionWithError method

void endExecutionWithError (
  1. String message
)

endExecutionWithData will issue a CommandResult with data: null error: Exeption(message) isExecuting : false

Implementation

void endExecutionWithError(String message) {
  _commandResultsSubject.add(CommandResult<TResult>(
      _emitLastResult ? lastResult : null, Exception(message), false));
  _canExecuteSubject.add(true);
}