Пример #1
0
 protected void receiveBase(TBase result, String methodName) throws TException {
   TMessage msg = iprot_.readMessageBegin();
   if (msg.type == TMessageType.EXCEPTION) {
     TApplicationException x = TApplicationException.read(iprot_);
     iprot_.readMessageEnd();
     throw x;
   }
   if (msg.seqid != seqid_) {
     throw new TApplicationException(
         TApplicationException.BAD_SEQUENCE_ID, methodName + " failed: out of sequence response");
   }
   result.read(iprot_);
   iprot_.readMessageEnd();
 }