func (p *HiveServerException) Write(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteStructBegin("HiveServerException") if err != nil { return thrift.NewTProtocolExceptionWriteStruct(p.ThriftName(), err) } err = p.WriteField1(oprot) if err != nil { return err } err = p.WriteField2(oprot) if err != nil { return err } err = p.WriteField3(oprot) if err != nil { return err } err = oprot.WriteFieldStop() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "STOP", p.ThriftName(), err) } err = oprot.WriteStructEnd() if err != nil { return thrift.NewTProtocolExceptionWriteStruct(p.ThriftName(), err) } return err }