private SDBPException CreateException(Result result, int status, string msg) { SDBPException exception = new SDBPException(status, msg); UpdateException(exception, result); return(exception); }
private void UpdateException(SDBPException exception, Result result) { exception.result = result; if (result != null && result.GetCommandStatus() != Status.SDBP_API_ERROR) { exception.tableID = result.GetTableID(); exception.quorumID = result.GetQuorumID(); exception.nodeID = result.GetNodeID(); exception.paxosID = result.GetPaxosID(); } }