public class PersonalCertificateExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<PersonalCertificateException>
Constructor and Description |
---|
PersonalCertificateExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
toResponse(PersonalCertificateException exception)
Map an exception to a
Response . |
public javax.ws.rs.core.Response toResponse(PersonalCertificateException exception)
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 javax.ws.rs.ext.ExceptionMapper<PersonalCertificateException>
exception
- the exception to map to a response.Copyright © 2018 Vitam. All rights reserved.