public void recv_create_table() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } create_table_result result = new create_table_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.o1) { throw result.O1; } if (result.__isset.o2) { throw result.O2; } if (result.__isset.o3) { throw result.O3; } if (result.__isset.o4) { throw result.O4; } return; }
public void create_table_Process(int seqid, TProtocol iprot, TProtocol oprot) { create_table_args args = new create_table_args(); args.Read(iprot); iprot.ReadMessageEnd(); create_table_result result = new create_table_result(); try { iface_.create_table(args.Tbl); } catch (AlreadyExistsException o1) { result.O1 = o1; } catch (InvalidObjectException o2) { result.O2 = o2; } catch (MetaException o3) { result.O3 = o3; } catch (NoSuchObjectException o4) { result.O4 = o4; } oprot.WriteMessageBegin(new TMessage("create_table", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }