1 |
e902c13e
|
Andreas Müller
|
/**
|
2 |
|
|
* Copyright (C) 2009 EDIT
|
3 |
|
|
* European Distributed Institute of Taxonomy
|
4 |
|
|
* http://www.e-taxonomy.eu
|
5 |
|
|
*
|
6 |
|
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7 |
|
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8 |
|
|
*/
|
9 |
bc885cc5
|
Katja Luther
|
package eu.etaxonomy.cdm.validation;
|
10 |
|
|
|
11 |
|
|
import javax.validation.ConstraintViolation;
|
12 |
|
|
|
13 |
e902c13e
|
Andreas Müller
|
/**
|
14 |
|
|
*
|
15 |
|
|
* @author ayco_holleman
|
16 |
|
|
* @date 15 jan. 2015
|
17 |
|
|
*
|
18 |
|
|
*/
|
19 |
bc885cc5
|
Katja Luther
|
public class ValidationException extends Exception {
|
20 |
|
|
|
21 |
e902c13e
|
Andreas Müller
|
private static final long serialVersionUID = 4324647930626552152L;
|
22 |
|
|
|
23 |
|
|
public ValidationException(String message) {
|
24 |
|
|
super(message);
|
25 |
|
|
|
26 |
|
|
}
|
27 |
|
|
|
28 |
|
|
public ValidationException(ConstraintViolation<?> constraintViolation) {
|
29 |
|
|
super(constraintViolation.getMessage());
|
30 |
|
|
}
|
31 |
bc885cc5
|
Katja Luther
|
}
|