KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > barracuda > core > forms > DeferredValidationException


1 /*
2  * Copyright (C) 2003 Christian Cryder [christianc@granitepeaks.com]
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * $Id: DeferredValidationException.java,v 1.7 2004/02/01 05:16:28 christianc Exp $
19  */

20 package org.enhydra.barracuda.core.forms;
21
22 import java.io.*;
23 import java.util.*;
24
25 import org.enhydra.barracuda.plankton.exceptions.NestableException;
26
27 /**
28  * This class defines a deferred validation exception. It's just
29  * like a standard validation exception, except that validation
30  * continues (so that we can collect all possible validation
31  * errors on a form at one time).
32  */

33 public class DeferredValidationException extends ValidationException {
34
35     protected List subExceptions = null;
36
37     /**
38      * The noargs public contructor for DeferredValidationException
39      */

40     public DeferredValidationException () {super(null);}
41
42     /**
43      * The public contructor for DeferredValidationException
44      *
45      * @param source the object which caused this error (usually a
46      * FormElement)
47      */

48     public DeferredValidationException (Object JavaDoc source) {super(source, null);}
49
50     /**
51      * The public contructor for DeferredValidationException
52      *
53      * @param source the object which caused this error (usually a
54      * FormElement)
55      * @param s a String describing the exception
56      */

57     public DeferredValidationException (Object JavaDoc source, String JavaDoc s) {super(source, s, null);}
58
59     /**
60      * The public contructor for DeferredValidationException
61      *
62      * @param source the object which caused this error (usually a
63      * FormElement)
64      * @param s a String describing the exception
65      * @param ibaseException the original exception to wrap within this exception
66      */

67     public DeferredValidationException (Object JavaDoc source, String JavaDoc s, Exception JavaDoc ibaseException) {super(source, s, ibaseException);}
68
69 }
70
Popular Tags