public class ConstraintException extends RepositoryException
| Constructor and Description |
|---|
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. |
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 Map<String,String> getViolations()
javax.validation.ConstraintViolation.getPropertyPath() name with
violation message.public String getMessage()
getMessage in class ThrowableCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.