MQL4CSharp.Base.MQL.MQLCommandManager.throwExceptionIfErrorResponse C# (CSharp) Метод

throwExceptionIfErrorResponse() публичный Метод

public throwExceptionIfErrorResponse ( int id ) : void
id int
Результат void
        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));
                }
            }
        }