Class ResteasyViolationExceptionImpl
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.validation.ValidationException
jakarta.validation.ConstraintViolationException
org.jboss.resteasy.api.validation.ResteasyViolationException
io.quarkus.hibernate.validator.runtime.jaxrs.ResteasyViolationExceptionImpl
- All Implemented Interfaces:
Serializable
public class ResteasyViolationExceptionImpl
extends org.jboss.resteasy.api.validation.ResteasyViolationException
Wrapper around a
ConstraintViolationException,
used to mark a constraint violation as relative to a REST endpoint call.
Those violations are handled differently than violations from other, internal components: a violation on an internal component is always considered an internal error (HTTP 500), while a violation on the parameters of a REST endpoint call is a client error (HTTP 400).
- See Also:
-
Field Summary
Fields inherited from class org.jboss.resteasy.api.validation.ResteasyViolationException
SUPPRESS_VIOLATION_PATH -
Constructor Summary
ConstructorsConstructorDescriptionResteasyViolationExceptionImpl(Set<? extends jakarta.validation.ConstraintViolation<?>> constraintViolations, List<jakarta.ws.rs.core.MediaType> produces) -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.resteasy.spi.validation.ConstraintTypeUtilprotected org.jboss.resteasy.spi.ResteasyConfigurationMethods inherited from class org.jboss.resteasy.api.validation.ResteasyViolationException
checkSuppressPath, convertArrayToString, convertFromString, convertViolation, convertViolations, getAccept, getClassViolations, getException, getField, getParameterViolations, getPropertyViolations, getReturnValueViolations, getViolationLists, getViolations, setAccept, setException, size, toCloneableMediaTypeList, toMediaTypeList, toStringMethods inherited from class jakarta.validation.ConstraintViolationException
getConstraintViolationsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ResteasyViolationExceptionImpl
-
-
Method Details
-
getConstraintTypeUtil
public org.jboss.resteasy.spi.validation.ConstraintTypeUtil getConstraintTypeUtil()- Specified by:
getConstraintTypeUtilin classorg.jboss.resteasy.api.validation.ResteasyViolationException
-
getResteasyConfiguration
protected org.jboss.resteasy.spi.ResteasyConfiguration getResteasyConfiguration()- Specified by:
getResteasyConfigurationin classorg.jboss.resteasy.api.validation.ResteasyViolationException
-