\Bitrix\Main\Error|null public \Bitrix\Main\ErrorCollection::getErrorByCode( string|integer $code );
Non-static method returns error by retrieved code.