Source code: org/javahispano/canyamo/util/html/validator/ParseException.java
1 /*
2 Cañamo, portal framework
3 Copyright (c) 2002
4 Alberto Molpeceres, javaHispano (http://www.javahispano.org)
5 Martin Pérez, javaHispano (http://www.javahispano.org)
6 All rights reserved.
7 .
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met:
10 Redistributions of source code must retain the above copyright notice,
11 this list of conditions and the following disclaimer.
12 Redistributions in binary form must reproduce the above copyright notice,
13 this list of conditions and the following disclaimer in the documentation
14 and/or other materials provided with the distribution.
15 Neither the name of Alberto Molpeceres, javaHispano nor the names of its
16 contributors may be used to endorse or promote products derived from
17 this software without specific prior written permission.
18 .
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
23 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
24 OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
27 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29 THE POSSIBILITY OF SUCH DAMAGE.
30 */
31 package org.javahispano.canyamo.util.html.validator;
32
33 /**
34 * A validation exception. This exception is thrown when when the process of
35 * evaluating an HTML expression can't be accomplished.
36 *
37 *@author <a href="mailto:martin AT javahispano DOT org">Martín Pérez
38 * Mariñán</a>
39 *@created 05-09-2002
40 *@version 1.0
41 */
42 public class ParseException extends Exception {
43
44 /** Constructor for the ParseException object */
45 public ParseException() {
46 super();
47 }
48
49
50 /**
51 * Constructor for the ParseException object
52 *
53 *@param message Description of Parameter
54 */
55 public ParseException(String message) {
56 super(message);
57 }
58
59
60 /**
61 * Constructor for the ParseException object
62 *
63 *@param e Description of Parameter
64 */
65 public ParseException(Exception e) {
66 //jdk 1.4
67 // super(e);
68
69 //jdk 1.3
70 super(e.getMessage());
71 }
72
73 }
74