public class ServletErrorResponseBuilder extends Object
| Constructor and Description |
|---|
ServletErrorResponseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
<ResponseT extends ResponseWithErrorCode> |
build(javax.servlet.http.HttpServletResponse servletResponse,
ResponseT response)
Build and pass the servlet error response.
|
public <ResponseT extends ResponseWithErrorCode> void build(@Nonnull javax.servlet.http.HttpServletResponse servletResponse, @Nonnull ResponseT response) throws IOException
ResponseT - The generic response type.servletResponse - The response reference to be used.response - The response being passed as JSON payload.IOException - When the error could not be passed to the servlet response reference.Copyright © 2022 SAP SE. All rights reserved.