throw new TraCIException("not enough responses received");
for (int i=0; i<commands.size(); i++) {
Command cmd = commands.get(i);
ResponseContainer responsePair = responses.get(i);
StatusResponse statusResp = responsePair.getStatus();
verify("command and status IDs match", cmd.id(), statusResp.id());
if (statusResp.result() != Constants.RTYPE_OK)
throw new TraCIException("SUMO error for command "
+ statusResp.id() + ": " + statusResp.description());
}
return respMsg;
}