From 6721c4968fc17c2facabf0eec6be5faa3dc32734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20LB?= Date: Sat, 25 May 2024 19:41:52 +0200 Subject: [PATCH] ShouldThrowValidationDependencyExceptionOnLoadAssemblyIfExternalExceptionOccurs -> FAIL --- .../Assemblies/AssemblyService.Exceptions.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/STX.SPAL.Core/Services/Foundations/Assemblies/AssemblyService.Exceptions.cs b/STX.SPAL.Core/Services/Foundations/Assemblies/AssemblyService.Exceptions.cs index a1cb38e..bff70f7 100644 --- a/STX.SPAL.Core/Services/Foundations/Assemblies/AssemblyService.Exceptions.cs +++ b/STX.SPAL.Core/Services/Foundations/Assemblies/AssemblyService.Exceptions.cs @@ -75,12 +75,6 @@ private static Assembly TryCatch(ReturningAssemblyFunction returningAssemblyFunc throw CreateAssemblyDependencyException( unauthorizedAccessException); } - - catch (ArgumentException argumentException) - { - throw CreateAssemblyDependencyException( - argumentException); - } } private static AssemblyValidationException CreateAssemblyValidationException(Xeption exception) @@ -101,17 +95,5 @@ private static AssemblyDependencyException CreateAssemblyDependencyException(Exc message: "Assembly dependency error occurred, contact support.", innerException: assemblyLoadException); } - - private static AssemblyValidationDependencyException CreateAssemblyValidationDependencyException(Exception exception) - { - var assemblyLoadException = - new AssemblyLoadException( - message: "Assembly load error occurred, contact support.", - innerException: exception); - - return new AssemblyValidationDependencyException( - message: "Assembly validation dependency error occurred, contact support.", - innerException: assemblyLoadException); - } } }