Class PersonalCertificateExceptionMapper

    • Constructor Detail

      • PersonalCertificateExceptionMapper

        public PersonalCertificateExceptionMapper()
    • Method Detail

      • 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.