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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.ws.rs.core.Response
buildResponse
(Object entity, String mediaType, jakarta.ws.rs.core.Response.Status status) protected jakarta.ws.rs.core.Response
buildViolationReportResponse
(ResteasyViolationException exception, jakarta.ws.rs.core.Response.Status status) jakarta.ws.rs.core.Response
toResponse
(jakarta.validation.ValidationException exception) protected String
-
Constructor Details
-
ResteasyViolationExceptionMapper
public ResteasyViolationExceptionMapper()
-
-
Method Details
-
toResponse
public jakarta.ws.rs.core.Response toResponse(jakarta.validation.ValidationException exception) - Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<jakarta.validation.ValidationException>
-
buildResponse
-
buildViolationReportResponse
protected jakarta.ws.rs.core.Response buildViolationReportResponse(ResteasyViolationException exception, jakarta.ws.rs.core.Response.Status status) -
unwrapException
-