KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > classic > ValidationFailure


1 //$Id: ValidationFailure.java,v 1.1 2004/07/28 03:33:33 oneovthafew Exp $
2
package org.hibernate.classic;
3
4 import org.hibernate.HibernateException;
5
6 /**
7  * Thrown from <tt>Validatable.validate()</tt> when an invariant
8  * was violated. Some applications might subclass this exception
9  * in order to provide more information about the violation.
10  *
11  * @author Gavin King
12  */

13 public class ValidationFailure extends HibernateException {
14
15     public ValidationFailure(String JavaDoc message) {
16         super(message);
17     }
18
19     public ValidationFailure(String JavaDoc message, Exception JavaDoc e) {
20         super(message, e);
21     }
22
23     public ValidationFailure(Exception JavaDoc e) {
24         super("A validation failure occurred", e);
25     }
26
27 }
28
29
30
31
32
33
34
Popular Tags