ScalienDB exceptions.
Inheritance: 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();
     }
 }