01: package com.rimfaxe.xml.xmlreader;
02:
03: /**
04: * Thrown when problem constructing the DOM.
05:
06: <blockquote><small> Copyright (C) 2002 Hewlett-Packard Company.
07: This file is part of Sparta, an XML Parser, DOM, and XPath library.
08: This library is free software; you can redistribute it and/or
09: modify it under the terms of the GNU Lesser General Public License
10: as published by the Free Software Foundation; either version 2.1 of
11: the License, or (at your option) any later version. This library
12: is distributed in the hope that it will be useful, but WITHOUT ANY
13: WARRANTY; without even the implied warranty of MERCHANTABILITY or
14: FITNESS FOR A PARTICULAR PURPOSE.</small></blockquote>
15:
16: @see <a "href="doc-files/LGPL.txt">GNU Lesser General Public License</a>
17: @version $Date: 2002/08/19 05:04:01 $ $Revision: 1.1.1.1 $
18: @see org.w3c.dom.DOMException
19: @author Eamonn O'Brien-Strain
20: */
21: public class DOMException extends Exception {
22: public DOMException(short code, String message) {
23: super (message);
24: this .code = code;
25: }
26:
27: public short code;
28: //public static final short INDEX_SIZE_ERR = 1;
29: public static final short DOMSTRING_SIZE_ERR = 2;
30: public static final short HIERARCHY_REQUEST_ERR = 3;
31: //public static final short WRONG_DOCUMENT_ERR = 4;
32: //public static final short INVALID_CHARACTER_ERR = 5;
33: //public static final short NO_DATA_ALLOWED_ERR = 6;
34: //public static final short NO_MODIFICATION_ALLOWED_ERR = 7;
35: public static final short NOT_FOUND_ERR = 8;
36: //public static final short NOT_SUPPORTED_ERR = 9;
37: //public static final short INUSE_ATTRIBUTE_ERR = 10;
38:
39: }
40:
41: // $Log: DOMException.java,v $
42: // Revision 1.1.1.1 2002/08/19 05:04:01 eobrain
43: // import from HP Labs internal CVS
44: //
45: // Revision 1.3 2002/08/18 04:32:20 eob
46: // Add copyright and other formatting and commenting in preparation for
47: // release to SourceForge.
48: //
49: // Revision 1.2 2002/05/23 21:02:12 eob
50: // Add DOMSTRING_SIZE_ERR code.
51: //
52: // Revision 1.1 2002/01/04 18:28:11 eob
53: // initial
|