KickJava   Java API By Example, From Geeks To Geeks.

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


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: UnableToValidateException.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 exception indicates the Validator was not able to validate
29  * the incoming value. Usually thrown due to a type mismatch (ie. the
30  * validator is expecting a number and it gets an alphanumeric string
31  * or something like that), if this occurs it probably indicates you are
32  * improperly using a validator.
33  */

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

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

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

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

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