/** * @param message */ public virtual void onErrorMessage(ErrorMessage message) { RBD.Msg.Client.ErrorMessage reply = new RBD.Msg.Client.ErrorMessage(); reply.Exception = message.Exception; coordinator.abortTransaction(reply); }
public override void commitTransaction() { try { this.connector.query(getQueryString()); this.getDatabaseState().incrementTableVersion(getTableName()); replyToCoordinator(new HaveCommittedMessage()); setState(new CommittedState()); } catch (DBException exception) { ErrorMessage msg = new ErrorMessage(); msg.Exception = exception; replyToCoordinator(msg); setState(new AbortState()); } endTransaction(); }