示例#1
0
 /// <summary>
 /// new
 /// </summary>
 /// <param name="xid"></param>
 /// <param name="zxid"></param>
 /// <param name="errorCode"></param>
 /// <param name="payload"></param>
 public ZookResponse(int xid, long zxid, Data.ZoookError errorCode, byte[] payload)
 {
     this.XId       = xid;
     this.ZXId      = zxid;
     this.ErrorCode = errorCode;
     this.Payload   = payload;
 }
示例#2
0
 /// <summary>
 /// new
 /// </summary>
 /// <param name="xid"></param>
 /// <param name="zxid"></param>
 /// <param name="errorCode"></param>
 /// <param name="payload"></param>
 public ZookResponse(int xid, long zxid, Data.ZoookError errorCode, byte[] payload)
 {
     this.XID = xid;
     this.ZXID = zxid;
     this.ErrorCode = errorCode;
     this.Payload = payload;
 }
示例#3
0
 /// <summary>
 /// new
 /// </summary>
 /// <param name="path"></param>
 /// <param name="error"></param>
 public KeeperException(string path, Data.ZoookError error)
     : base(string.Concat("path:{", path ?? string.Empty, "}, error:{", error.ToString(), "}"))
 {
     this.Path  = path;
     this.Error = error;
 }
示例#4
0
 /// <summary>
 /// new
 /// </summary>
 /// <param name="error"></param>
 public KeeperException(Data.ZoookError error)
     : base(error.ToString())
 {
     this.Error = error;
 }
 /// <summary>
 /// new
 /// </summary>
 /// <param name="path"></param>
 /// <param name="error"></param>
 public KeeperException(string path, Data.ZoookError error)
     : base(string.Concat("path:{", path ?? string.Empty, "}, error:{", error.ToString(), "}"))
 {
     this.Path = path;
     this.Error = error;
 }
 /// <summary>
 /// new
 /// </summary>
 /// <param name="error"></param>
 public KeeperException(Data.ZoookError error)
     : base(error.ToString())
 {
     this.Error = error;
 }