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 Details

  • 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 violations
      accept - list of accept media types
    • ResteasyViolationException

      public ResteasyViolationException(SimpleViolationsContainer container)
      New constructor
      Parameters:
      container - violation container
    • ResteasyViolationException

      public ResteasyViolationException(SimpleViolationsContainer container, List<jakarta.ws.rs.core.MediaType> accept)
      New constructor
      Parameters:
      container - violation container
      accept - list of accept media types
    • ResteasyViolationException

      public ResteasyViolationException(String stringRep)
  • Method Details

    • getConstraintTypeUtil

      public abstract ConstraintTypeUtil getConstraintTypeUtil()
    • getAccept

      public List<jakarta.ws.rs.core.MediaType> getAccept()
    • setAccept

      public void setAccept(List<jakarta.ws.rs.core.MediaType> accept)
    • getException

      public Exception getException()
    • setException

      public void setException(Exception exception)
    • getViolations

      public List<ResteasyConstraintViolation> getViolations()
    • getPropertyViolations

      public List<ResteasyConstraintViolation> getPropertyViolations()
    • getClassViolations

      public List<ResteasyConstraintViolation> getClassViolations()
    • getParameterViolations

      public List<ResteasyConstraintViolation> getParameterViolations()
    • getReturnValueViolations

      public List<ResteasyConstraintViolation> getReturnValueViolations()
    • size

      public int size()
    • getViolationLists

      public List<List<ResteasyConstraintViolation>> getViolationLists()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • convertFromString

      protected void convertFromString(String stringRep)
    • getField

      protected int getField(int start, String line)
    • getResteasyConfiguration

      protected abstract ResteasyConfiguration getResteasyConfiguration()
    • checkSuppressPath

      protected void checkSuppressPath()
    • convertViolations

      protected void convertViolations()
    • convertViolation

      protected ResteasyConstraintViolation convertViolation(jakarta.validation.ConstraintViolation<?> violation)
    • convertArrayToString

      protected static String convertArrayToString(Object o)
    • toCloneableMediaTypeList

      protected static List<org.jboss.resteasy.api.validation.ResteasyViolationException.CloneableMediaType> toCloneableMediaTypeList(List<jakarta.ws.rs.core.MediaType> list)
    • toMediaTypeList

      protected static List<jakarta.ws.rs.core.MediaType> toMediaTypeList(List<org.jboss.resteasy.api.validation.ResteasyViolationException.CloneableMediaType> cloneableList)