public void throwExceptionIfErrorResponse(int id)
{
lock (syncLock)
{
LOG.DebugFormat("throwExceptionIfErrorResponse({0})", id, commandRequests[id].Error);
if (commandRequests[id].Error > 0)
{
int error = commandRequests[id].Error;
String command = commandRequests[id].Command.ToString();
String parameters = getCommandParams(id);
commandRequests.Remove(id);
MQLExceptions.throwMQLException(error, String.Format("{0}({1})", command, parameters));
}
}
}