Class PersonalCertificateExceptionMapper

    • Constructor Detail

      • PersonalCertificateExceptionMapper

        public PersonalCertificateExceptionMapper()
    • Method Detail

      • toResponse

        public 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<PersonalCertificateException>
        exception - the exception to map to a response.
        a response mapped from the supplied exception.