Class PersonalCertificateExceptionMapper
- java.lang.Object
-
- fr.gouv.vitam.security.internal.rest.mapper.PersonalCertificateExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<PersonalCertificateException>
public class PersonalCertificateExceptionMapper extends java.lang.Object implements javax.ws.rs.ext.ExceptionMapper<PersonalCertificateException>
Mapper for PersonalCertificateException
-
-
Constructor Summary
Constructors Constructor Description PersonalCertificateExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(PersonalCertificateException exception)
Map an exception to aResponse
.
-
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(PersonalCertificateException exception)
Map an exception to aResponse
. Returningnull
results in aResponse.Status.NO_CONTENT
response. Throwing a runtime exception results in aResponse.Status.INTERNAL_SERVER_ERROR
response.- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<PersonalCertificateException>
- Parameters:
exception
- the exception to map to a response.- Returns:
- a response mapped from the supplied exception.
-
-