1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.core.persistence.api.attrvalue.validation;
20
21 import javax.validation.ValidationException;
22 import org.apache.syncope.core.persistence.api.entity.PlainAttrValue;
23
24 public class InvalidPlainAttrValueException extends ValidationException {
25
26 private static final long serialVersionUID = -5023202610580202148L;
27
28 public InvalidPlainAttrValueException(final String errorMessage) {
29 super(errorMessage);
30 }
31
32 public InvalidPlainAttrValueException(final String errorMessage, final Throwable cause) {
33 super(errorMessage, cause);
34 }
35
36 public InvalidPlainAttrValueException(final PlainAttrValue value) {
37 this("Could not validate " + value.getValue());
38 }
39
40 public InvalidPlainAttrValueException(final PlainAttrValue value, final Throwable cause) {
41 this("Could not validate " + value.getValue(), cause);
42 }
43 }