Project

General

Profile

Download (786 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
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
package eu.etaxonomy.cdm.validation;
10

    
11
import javax.validation.ConstraintViolation;
12

    
13
/**
14
 *
15
 * @author ayco_holleman
16
 * @date 15 jan. 2015
17
 *
18
 */
19
public class ValidationException extends Exception {
20

    
21
    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
}
(3-3/3)