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 Object
implements javax.ws.rs.ext.ExceptionMapper<PersonalCertificateException>
Mapper for PersonalCertificateException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
toResponse
(PersonalCertificateException exception) Map an exception to aResponse
.
-
Constructor Details
-
PersonalCertificateExceptionMapper
public PersonalCertificateExceptionMapper()
-
-
Method Details
-
toResponse
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.
-