in scheduler/api/thrift/gen-go/scoot/cloudscoot.go [927:977]
func (p *CloudScootClient) recvSetRequestorToClassMap() (err error) {
iprot := p.InputProtocol
if iprot == nil {
iprot = p.ProtocolFactory.GetProtocol(p.Transport)
p.InputProtocol = iprot
}
method, mTypeId, seqId, err := iprot.ReadMessageBegin()
if err != nil {
return
}
if method != "SetRequestorToClassMap" {
err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "SetRequestorToClassMap failed: wrong method name")
return
}
if p.SeqId != seqId {
err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "SetRequestorToClassMap failed: out of sequence response")
return
}
if mTypeId == thrift.EXCEPTION {
error28 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
var error29 error
error29, err = error28.Read(iprot)
if err != nil {
return
}
if err = iprot.ReadMessageEnd(); err != nil {
return
}
err = error29
return
}
if mTypeId != thrift.REPLY {
err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "SetRequestorToClassMap failed: invalid message type")
return
}
result := CloudScootSetRequestorToClassMapResult{}
if err = result.Read(iprot); err != nil {
return
}
if err = iprot.ReadMessageEnd(); err != nil {
return
}
if result.Ir != nil {
err = result.Ir
return
} else if result.Err != nil {
err = result.Err
return
}
return
}