func (p *HiveServerException) WriteField3(oprot thrift.TProtocol) (err thrift.TProtocolException) { if len(p.SQLState) < 1 { return nil } err = oprot.WriteFieldBegin("SQLState", thrift.STRING, 3) if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "SQLState", p.ThriftName(), err) } err = oprot.WriteString(string(p.SQLState)) if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "SQLState", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "SQLState", p.ThriftName(), err) } return err }
func (p *HiveServerException) WriteField1(oprot thrift.TProtocol) (err thrift.TProtocolException) { if len(p.Message) < 1 { return nil } err = oprot.WriteFieldBegin("message", thrift.STRING, 1) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "message", p.ThriftName(), err) } err = oprot.WriteString(string(p.Message)) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "message", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "message", p.ThriftName(), err) } return err }