Modifier and Type | Method and Description |
---|---|
Response |
toResponse(E exception)
Map an exception to a
Response . |
Response toResponse(E exception)
Response
. Returning
null
results in a Response.Status.NO_CONTENT
response. Throwing a runtime exception results in a
Response.Status.INTERNAL_SERVER_ERROR
responseexception
- the exception to map to a responseCopyright © 2018 JBoss by Red Hat. All rights reserved.