~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to src/org/hibernate/classic/ValidationFailure.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//$Id: ValidationFailure.java 4112 2004-07-28 03:33:35Z oneovthafew $
 
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 message) {
 
16
                super(message);
 
17
        }
 
18
 
 
19
        public ValidationFailure(String message, Exception e) {
 
20
                super(message, e);
 
21
        }
 
22
 
 
23
        public ValidationFailure(Exception e) {
 
24
                super("A validation failure occurred", e);
 
25
        }
 
26
 
 
27
}
 
28
 
 
29
 
 
30
 
 
31
 
 
32
 
 
33