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 Details

    • PersonalCertificateExceptionMapper

      public PersonalCertificateExceptionMapper()
  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(PersonalCertificateException exception)
      Map an exception to a Response. Returning null results in a Response.Status.NO_CONTENT response. Throwing a runtime exception results in a Response.Status.INTERNAL_SERVER_ERROR response.
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<PersonalCertificateException>
      Parameters:
      exception - the exception to map to a response.
      Returns:
      a response mapped from the supplied exception.