ScalienDB exceptions.
상속: System.Exception
예제 #1
0
파일: Client.cs 프로젝트: zYg-sys/scaliendb
        private SDBPException CreateException(Result result, int status, string msg)
        {
            SDBPException exception = new SDBPException(status, msg);

            UpdateException(exception, result);

            return(exception);
        }
예제 #2
0
파일: Client.cs 프로젝트: zYg-sys/scaliendb
 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();
     }
 }