Deveel.Data.Client.ConnectionClient.RollbackTransaction C# (CSharp) Method

RollbackTransaction() public method

public RollbackTransaction ( int transactionId ) : void
transactionId int
return void
        public void RollbackTransaction(int transactionId)
        {
            var response = SendMessage(new RollbackRequest(transactionId))
                as AcknowledgeResponse;

            if (response == null)
                throw new InvalidOperationException();

            if (!response.State)
                throw new DeveelDbServerException("Unable to rollback the transaction on the server.", -1, -1);
        }