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

            UpdateException(exception, result);

            return(exception);
        }
Example #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();
     }
 }