KickJava   Java API By Example, From Geeks To Geeks.

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


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: ParseException.java,v 1.6 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 a value was unable to be converted to
29  * a valid value for the specified FormType.
30  */

31 public class ParseException extends ValidationException {
32
33     protected List subExceptions = null;
34
35     /**
36      * The noargs public contructor for ParseException
37      */

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

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

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

65     public ParseException (Object JavaDoc source, String JavaDoc s, Exception JavaDoc ibaseException) {super(source, s, ibaseException);}
66
67 }
68
Popular Tags