mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 04:35:00 +00:00
feat: Re-raise base exception from ReflectionUtils.CreateInstance, TargetInvocationException and TypeLoadException don't say much
This commit is contained in:
@@ -253,7 +253,11 @@ namespace ICD.Common.Utils
|
||||
}
|
||||
catch (TypeLoadException e)
|
||||
{
|
||||
throw new TypeLoadException(e.GetBaseException().Message);
|
||||
throw e.GetBaseException();
|
||||
}
|
||||
catch (TargetInvocationException e)
|
||||
{
|
||||
throw e.GetBaseException();
|
||||
}
|
||||
|
||||
string message = string.Format("Unable to find constructor for {0}", type.Name);
|
||||
|
||||
Reference in New Issue
Block a user