01: /* Copyright 2002-2005 Elliotte Rusty Harold
02:
03: This library is free software; you can redistribute it and/or modify
04: it under the terms of version 2.1 of the GNU Lesser General Public
05: License as published by the Free Software Foundation.
06:
07: This library is distributed in the hope that it will be useful,
08: but WITHOUT ANY WARRANTY; without even the implied warranty of
09: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10: GNU Lesser General Public License for more details.
11:
12: You should have received a copy of the GNU Lesser General Public
13: License along with this library; if not, write to the
14: Free Software Foundation, Inc., 59 Temple Place, Suite 330,
15: Boston, MA 02111-1307 USA
16:
17: You can contact Elliotte Rusty Harold by sending e-mail to
18: elharo@metalab.unc.edu. Please include the word "XOM" in the
19: subject line. The XOM home page is located at http://www.xom.nu/
20: */
21:
22: package nu.xom;
23:
24: /**
25: * <p>
26: * Indicates an attempt to assign a name that is not a legal XML name.
27: * For example, this might be a name that begins with a digit
28: * such as <code>7pins</code> or a name that contains an asterisk such
29: * as <code>pt*</code>. In some contexts, this also includes names that
30: * are not legal non-colonized names as defined by <cite>Namespaces in
31: * XML</cite>.
32: * </p>
33:
34: * @author Elliotte Rusty Harold
35: * @version 1.1b3
36: *
37: */
38: public class IllegalNameException extends IllegalDataException {
39:
40: private static final long serialVersionUID = -5050380625643506613L;
41:
42: /**
43: * <p>
44: * Creates a new <code>IllegalNameException</code>
45: * with a detail message.
46: * </p>
47: *
48: * @param message a string indicating the specific problem
49: */
50: public IllegalNameException(String message) {
51: super (message);
52: }
53:
54: /**
55: * <p>
56: * Creates a new <code>IllegalNameException</code>
57: * with a detail message and an underlying root cause.
58: * </p>
59: *
60: * @param message a string indicating the specific problem
61: * @param cause the original cause of this exception
62: */
63: public IllegalNameException(String message, Throwable cause) {
64: super(message, cause);
65: }
66:
67: }
|