Ejemplo n.º 1
0
        protected virtual void HandleModuleTypeLoadingError(IModuleInfo moduleInfo, Exception exception)
        {
            if (moduleInfo == null)
            {
                throw new ArgumentNullException(nameof(moduleInfo));
            }


            if (!(exception is ModuleTypeLoadingException moduleTypeLoadingException))
            {
                moduleTypeLoadingException = new ModuleTypeLoadingException(moduleInfo.ModuleName, exception.Message, exception);
            }

            _logger.Log(moduleTypeLoadingException.Message, Category.Error, Priority.High);

            throw moduleTypeLoadingException;
        }
Ejemplo n.º 2
0
        protected virtual void HandleModuleTypeLoadingError(ModuleInfo moduleInfo, Exception exception)
        {
            if (moduleInfo == null)
            {
                throw new ArgumentNullException("moduleInfo");
            }


            if (!(exception is ModuleTypeLoadingException moduleTypeLoadingException))
            {
                moduleTypeLoadingException = new ModuleTypeLoadingException(moduleInfo.ModuleName, exception.Message, exception);
            }

            this._loggerFacade.LogError(moduleTypeLoadingException.Message);

            throw moduleTypeLoadingException;
        }