コード例 #1
0
 public void ThrowIfNeeded(BaseResult baseResult)
 {
     if (baseResult.Error && db.Setting.ThrowForServerErrors == true)
     {
         throw new ArangoServerException(baseResult);
     }
 }
コード例 #2
0
 protected void SetProperties(BaseResult baseResult)
 {
     this.Code = baseResult.Code;
     this.Error = baseResult.Error;
     this.ErrorMessage = baseResult.ErrorMessage;
     this.ErrorNum = baseResult.ErrorNum;
 }
コード例 #3
0
 public ArangoServerException(BaseResult baseResult)
     : base(string.Format("{0}. ErrorNumber: {1} HttpStatusCode: {2}",baseResult.ErrorMessage,baseResult.ErrorNum,baseResult.Code))
 {
 }
コード例 #4
0
 public void Throw(BaseResult baseResult)
 {
     if (baseResult.Error)
         throw new ArangoServerException(baseResult);
 }