endExecutionWithError method

void endExecutionWithError (String message)

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

Implementation

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