public class InvalidEntityException
extends javax.validation.ValidationException
Constructor and Description |
---|
InvalidEntityException(Class<?> entityClass,
EntityViolationType entityViolationType,
String message)
Constructs a singleton map of violations from given parameters.
|
InvalidEntityException(String entityClassSimpleName,
Set<javax.validation.ConstraintViolation<Object>> violations)
Constructs a map of violations out of given ConstraintViolation set.
|
Modifier and Type | Method and Description |
---|---|
String |
getEntityClassSimpleName() |
String |
getMessage() |
Map<Class<?>,Set<EntityViolationType>> |
getViolations() |
boolean |
hasViolation(EntityViolationType type) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidEntityException(Class<?> entityClass, EntityViolationType entityViolationType, String message)
entityClass
- class of invalid entityentityViolationType
- type of violation foundmessage
- message to be associated to the violationpublic InvalidEntityException(String entityClassSimpleName, Set<javax.validation.ConstraintViolation<Object>> violations)
entityClassSimpleName
- simple class name of invalid entityviolations
- as returned by bean validationpublic final boolean hasViolation(EntityViolationType type)
public String getEntityClassSimpleName()
public final Map<Class<?>,Set<EntityViolationType>> getViolations()
public String getMessage()
getMessage
in class Throwable
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.