public class ConstraintException extends RepositoryException
| Constructor and Description |
|---|
ConstraintException(List<ValidationMessage> violationsList)
Constructor for ConstraintException with a set of messages
|
ConstraintException(Map<String,String> violations)
Constructor for ConstraintException with a set of messages
|
ConstraintException(String param,
String message)
Constructor for ConstraintException without message detail
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
Map<String,String> |
getViolations()
Map with violations where key is
javax.validation.ConstraintViolation.getPropertyPath() name with
violation message. |
List<ValidationMessage> |
getViolationsI18n()
Map with violations where key is
javax.validation.ConstraintViolation.getPropertyPath() name with
violation message and the key for internationalization |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ConstraintException(String param, String message)
param - the name of parameter with errormessage - the user messagepublic ConstraintException(Map<String,String> violations)
violations - violated constraints from model, with pair of values field and messagepublic ConstraintException(List<ValidationMessage> violationsList)
violationsList - violated constraints from model, with list of values field, message and key messagepublic Map<String,String> getViolations()
javax.validation.ConstraintViolation.getPropertyPath() name with
violation message.public List<ValidationMessage> getViolationsI18n()
javax.validation.ConstraintViolation.getPropertyPath() name with
violation message and the key for internationalizationpublic String getMessage()
getMessage in class ThrowableCopyright © 2012–2022 jkniv, copyleft code. All rights reserved.