Skip to content

Commit

Permalink
ShouldThrowValidationDependencyExceptionOnLoadAssemblyIfExternalExcep…
Browse files Browse the repository at this point in the history
…tionOccurs -> FAIL
  • Loading branch information
LBoullosa committed May 25, 2024
1 parent 3d64b97 commit 6721c49
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
}
}
}

0 comments on commit 6721c49

Please sign in to comment.