@Provider public class JsonProcessingExceptionMapper extends Object implements ExceptionMapper<JsonProcessingException>
| Constructor and Description |
|---|
JsonProcessingExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
Response |
toResponse(JsonProcessingException exception)
Map an exception to a
Response. |
public Response toResponse(JsonProcessingException exception)
ExceptionMapperResponse. Returning
null results in a Response.Status.NO_CONTENT
response. Throwing a runtime exception results in a
Response.Status.INTERNAL_SERVER_ERROR response.toResponse in interface ExceptionMapper<JsonProcessingException>exception - the exception to map to a response.Copyright © 2025 JBoss by Red Hat. All rights reserved.