@Provider public class UnrecognizedPropertyExceptionHandler extends Object implements ExceptionMapper<UnrecognizedPropertyException>
Constructor and Description |
---|
UnrecognizedPropertyExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
Response |
toResponse(UnrecognizedPropertyException exception)
Map an exception to a
Response . |
public UnrecognizedPropertyExceptionHandler()
public Response toResponse(UnrecognizedPropertyException exception)
ExceptionMapper
Response
. 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<UnrecognizedPropertyException>
exception
- the exception to map to a response.Copyright © 2021 JBoss by Red Hat. All rights reserved.