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

Add view rendering support for exception handling #34272

Open
bclozel opened this issue Jan 16, 2025 · 0 comments
Open

Add view rendering support for exception handling #34272

bclozel opened this issue Jan 16, 2025 · 0 comments
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented Jan 16, 2025

The ResponseEntityExceptionHandler handles exceptions at the MVC/WebFlux level as Problem Details. Right now, only machine-readable formats are managed.

The Spring Boot global error handling not only handles JSON, but also static pages and view templates. This infrastructure is currently based on an ErrorController and an ErrorAttributes object. Errors are handled during error dispatches.

Errors should be as much as possible handled by the application, error dispatches should be the last resort. Spring Framework should help applications by providing a flexible mechanism for rendering errors as HTML. For that, we can probably lean on content negotiation support and the ordering of handlers.

@bclozel bclozel added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Jan 16, 2025
@bclozel bclozel added this to the 7.0.x milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant