public class ResteasyViolationException extends ConstraintViolationException
Modifier and Type | Field and Description |
---|---|
static String |
SUPPRESS_VIOLATION_PATH |
Constructor and Description |
---|
ResteasyViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
New constructor
|
ResteasyViolationException(Set<? extends ConstraintViolation<?>> constraintViolations,
List<MediaType> accept)
New constructor
|
ResteasyViolationException(SimpleViolationsContainer container)
New constructor
|
ResteasyViolationException(SimpleViolationsContainer container,
List<MediaType> accept)
New constructor
|
ResteasyViolationException(String stringRep) |
ResteasyViolationException(ViolationsContainer<?> container) |
ResteasyViolationException(ViolationsContainer<?> container,
List<MediaType> accept) |
getConstraintViolations
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final String SUPPRESS_VIOLATION_PATH
public ResteasyViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
constraintViolations
- set of constraint violationspublic ResteasyViolationException(Set<? extends ConstraintViolation<?>> constraintViolations, List<MediaType> accept)
constraintViolations
- set of constraint violationsaccept
- list of accept media typespublic ResteasyViolationException(SimpleViolationsContainer container)
container
- violation containerpublic ResteasyViolationException(SimpleViolationsContainer container, List<MediaType> accept)
container
- violation containeraccept
- list of accept media typespublic ResteasyViolationException(ViolationsContainer<?> container)
public ResteasyViolationException(ViolationsContainer<?> container, List<MediaType> accept)
public ResteasyViolationException(String stringRep)
public Exception getException()
public void setException(Exception exception)
public List<ResteasyConstraintViolation> getViolations()
public List<ResteasyConstraintViolation> getFieldViolations()
public List<ResteasyConstraintViolation> getPropertyViolations()
public List<ResteasyConstraintViolation> getClassViolations()
public List<ResteasyConstraintViolation> getParameterViolations()
public List<ResteasyConstraintViolation> getReturnValueViolations()
public int size()
public List<List<ResteasyConstraintViolation>> getViolationLists()
protected void convertToStrings(ViolationsContainer<?> container)
protected void convertFromString(String stringRep)
protected int getField(int start, String line)
protected void checkSuppressPath()
protected void convertViolations()
protected ResteasyConstraintViolation convertViolation(ConstraintViolation<?> violation)
protected static List<org.jboss.resteasy.api.validation.ResteasyViolationException.CloneableMediaType> toCloneableMediaTypeList(List<MediaType> list)
Copyright © 2021 JBoss by Red Hat. All rights reserved.