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); - } } }