-
Notifications
You must be signed in to change notification settings - Fork 108
Consider showing LoaderExceptions when caught exception is ReflectionTypeLoadException #315
Comments
cc @Eilon \ @rynowak \ @halter73 \ @davidfowl |
Are there other exception types that would benefit from a similar treatment? |
Also @ajaybhargavb who's assigned this work :) |
If you wanted to be super generic you could think about some reflection based logging. Maybe JSON serialization. I haven't tried it out to see how it would look for ReflectionTypeLoadExceptions and AggregateExceptions, but it might be worth looking into. |
Not sure I follow @halter73 - is this essentially serializing the exception to the log? |
Since this issue is filed in the diagnostics repo, I thought it would be about how to display exceptions in the error pages, not how it's logged. But yes, I'm essentially suggesting serializing the exception if it can be done in a way that's not too verbose/distracting. Maybe it can be put in a collapsible section like the result of I still think that MVC should catch |
@ajaybhargavb this is part of what we discussed earlier. Would be nice to special case some exception types and show more detailed information about them. |
Based on discussion at aspnet/Mvc#4892 (comment). It would be nice to type load exceptions so that it's easier to figure out what went wrong rather than see a generic message that tells you to read
LoaderExceptions
The text was updated successfully, but these errors were encountered: