drunkcod / Cone

8 stars 1 forks source link

Logging of ReflectionTypeLoadExceptions #20

Closed neochrome closed 7 years ago

neochrome commented 12 years ago

It would be very convenient if cone could trap and log ReflectionTypeLoadException so that one don't have to put the Verify's in a try-catch if that problem occurs. Example logging:

catch (ReflectionTypeLoadException ex)
{
  Console.Error.WriteLine(ex.Message);
  foreach (var loaderException in ex.LoaderExceptions)
  {
    Console.Error.WriteLine(loaderException.Message);
  }
}
drunkcod commented 7 years ago

This should have been closed years ago.