Class ResteasyViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.validation.ValidationException
jakarta.validation.ConstraintViolationException
org.jboss.resteasy.api.validation.ResteasyViolationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ResteasyViolationExceptionImpl
public abstract class ResteasyViolationException
extends jakarta.validation.ConstraintViolationException
- Version:
- $Revision: 1.1 $ Copyright Mar 6, 2012 @TODO Need to work on representation of exceptions @TODO Add javadoc.
- Author:
- Ron Sigal
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResteasyViolationException
(String stringRep) ResteasyViolationException
(Set<? extends jakarta.validation.ConstraintViolation<?>> constraintViolations) New constructorResteasyViolationException
(Set<? extends jakarta.validation.ConstraintViolation<?>> constraintViolations, List<jakarta.ws.rs.core.MediaType> accept) New constructorNew constructorResteasyViolationException
(SimpleViolationsContainer container, List<jakarta.ws.rs.core.MediaType> accept) New constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected static String
protected void
convertFromString
(String stringRep) protected ResteasyConstraintViolation
convertViolation
(jakarta.validation.ConstraintViolation<?> violation) protected void
List<jakarta.ws.rs.core.MediaType>
abstract ConstraintTypeUtil
protected int
protected abstract ResteasyConfiguration
void
void
setException
(Exception exception) int
size()
protected static List<org.jboss.resteasy.api.validation.ResteasyViolationException.CloneableMediaType>
toCloneableMediaTypeList
(List<jakarta.ws.rs.core.MediaType> list) protected static List<jakarta.ws.rs.core.MediaType>
toMediaTypeList
(List<org.jboss.resteasy.api.validation.ResteasyViolationException.CloneableMediaType> cloneableList) toString()
Methods inherited from class jakarta.validation.ConstraintViolationException
getConstraintViolations
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
SUPPRESS_VIOLATION_PATH
- See Also:
-
-
Constructor Details
-
ResteasyViolationException
public ResteasyViolationException(Set<? extends jakarta.validation.ConstraintViolation<?>> constraintViolations) New constructor- Parameters:
constraintViolations
- set of constraint violations
-
ResteasyViolationException
public ResteasyViolationException(Set<? extends jakarta.validation.ConstraintViolation<?>> constraintViolations, List<jakarta.ws.rs.core.MediaType> accept) New constructor- Parameters:
constraintViolations
- set of constraint violationsaccept
- list of accept media types
-
ResteasyViolationException
New constructor- Parameters:
container
- violation container
-
ResteasyViolationException
public ResteasyViolationException(SimpleViolationsContainer container, List<jakarta.ws.rs.core.MediaType> accept) New constructor- Parameters:
container
- violation containeraccept
- list of accept media types
-
ResteasyViolationException
-
-
Method Details
-
getConstraintTypeUtil
-
getAccept
-
setAccept
-
getException
-
setException
-
getViolations
-
getPropertyViolations
-
getClassViolations
-
getParameterViolations
-
getReturnValueViolations
-
size
public int size() -
getViolationLists
-
toString
-
convertFromString
-
getField
-
getResteasyConfiguration
-
checkSuppressPath
protected void checkSuppressPath() -
convertViolations
protected void convertViolations() -
convertViolation
protected ResteasyConstraintViolation convertViolation(jakarta.validation.ConstraintViolation<?> violation) -
convertArrayToString
-
toCloneableMediaTypeList
-
toMediaTypeList
-