Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture original exception in DeveloperExceptionPage middleware #47658

Closed
mehdihadeli opened this issue Apr 11, 2023 · 2 comments
Closed

Capture original exception in DeveloperExceptionPage middleware #47658

mehdihadeli opened this issue Apr 11, 2023 · 2 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@mehdihadeli
Copy link

Hi,
Please capture the original thrown exception in the DeveloperExceptionPageMiddlewareImpl middleware, like something we have in ExceptionHandlerMiddlewareImpl#L152 middleware. I want to use this original exception in my custom ProblemDetailsService and ProblemDetailsWriter.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Apr 11, 2023
@captainsafia
Copy link
Member

I believe the issue that you're describing is a duplicate of #47060 which was recently closed. We also have this API proposal (#47651) as an additional enhancement.

@captainsafia captainsafia added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Apr 11, 2023
@ghost ghost added the Status: Resolved label Apr 11, 2023
@mehdihadeli
Copy link
Author

Thanks.

@ghost ghost locked as resolved and limited conversation to collaborators May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants