ScalienDB exceptions.
Inheritance: System.Exception
示例#1
0
        private SDBPException CreateException(Result result, int status, string msg)
        {
            SDBPException exception = new SDBPException(status, msg);

            UpdateException(exception, result);

            return(exception);
        }
示例#2
0
 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();
     }
 }