Have the ErrorResponse.Builder take in a custom ProblemDetail instance #30568
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
As a user I would like to be able to create an
ErrorResponse
instance with a customProblemDetail
instance, while using the defaultErrorResponse.Builder
via theErrorResponse.builder
and/orErrorResponse.create
methods. This makes it easier for me to provide a custom ProblemDetail class while still being able to use the builder facilities.Currently there is no way to provide my own
ProblemDetail
instance to the builder, either via a method directly onErrorResponse.Builder
instance or via theErrorResponse.create
orErrorResponse.builder
methods (which is probably the preferred way).Note: I have discussed this feature request with @rstoyanchev at Spring I/O 2023
The text was updated successfully, but these errors were encountered: