상속: System.Exception
예제 #1
0
파일: Hbase.cs 프로젝트: charliem/OCM
 public void Read(TProtocol iprot)
 {
     TField field;
     TStruct struc = iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.Struct) {
     this.success = new TRowResult();
     this.success.Read(iprot);
     this.__isset.success = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     this.io = new IOError();
     this.io.Read(iprot);
     this.__isset.io = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     this.ia = new IllegalArgument();
     this.ia.Read(iprot);
     this.__isset.ia = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 3:
       if (field.Type == TType.Struct) {
     this.nf = new NotFound();
     this.nf.Read(iprot);
     this.__isset.nf = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }
예제 #2
0
파일: Hbase.cs 프로젝트: charliem/OCM
 public void Read(TProtocol iprot)
 {
     TField field;
     TStruct struc = iprot.ReadStructBegin();
     while (true)
     {
       field = iprot.ReadFieldBegin();
       if (field.Type == TType.Stop) {
     break;
       }
       switch (field.ID)
       {
     case 0:
       if (field.Type == TType.List) {
     {
       this.success = new List<TCell>();
       TList _list26 = iprot.ReadListBegin();
       for( int _i27 = 0; _i27 < _list26.Count; ++_i27)
       {
         TCell _elem28 = new TCell();
         _elem28 = new TCell();
         _elem28.Read(iprot);
         this.success.Add(_elem28);
       }
       iprot.ReadListEnd();
     }
     this.__isset.success = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 1:
       if (field.Type == TType.Struct) {
     this.io = new IOError();
     this.io.Read(iprot);
     this.__isset.io = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     case 2:
       if (field.Type == TType.Struct) {
     this.nf = new NotFound();
     this.nf.Read(iprot);
     this.__isset.nf = true;
       } else {
     TProtocolUtil.Skip(iprot, field.Type);
       }
       break;
     default:
       TProtocolUtil.Skip(iprot, field.Type);
       break;
       }
       iprot.ReadFieldEnd();
     }
     iprot.ReadStructEnd();
 }