Class ResteasyViolationExceptionMapper

java.lang.Object
org.jboss.resteasy.plugins.validation.ResteasyViolationExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ValidationException>

@Provider public class ResteasyViolationExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ValidationException>
Version:
$Revision: 1.1 $ Created Mar 31, 2012
Author:
Ron Sigal
  • Constructor Details

    • ResteasyViolationExceptionMapper

      public ResteasyViolationExceptionMapper()
  • Method Details

    • toResponse

      public jakarta.ws.rs.core.Response toResponse(jakarta.validation.ValidationException exception)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ValidationException>
    • buildResponse

      protected jakarta.ws.rs.core.Response buildResponse(Object entity, String mediaType, jakarta.ws.rs.core.Response.Status status)
    • buildViolationReportResponse

      protected jakarta.ws.rs.core.Response buildViolationReportResponse(ResteasyViolationException exception, jakarta.ws.rs.core.Response.Status status)
    • unwrapException

      protected String unwrapException(Throwable t)