KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xerces > internal > dom3 > as > DOMASException


1 /*
2  * Copyright (c) 2001 World Wide Web Consortium,
3  * (Massachusetts Institute of Technology, Institut National de
4  * Recherche en Informatique et en Automatique, Keio University). All
5  * Rights Reserved. This program is distributed under the W3C's Software
6  * Intellectual Property License. This program is distributed in the
7  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  * PURPOSE.
10  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11  */

12
13 package com.sun.org.apache.xerces.internal.dom3.as;
14
15 /**
16  * @deprecated
17  * Abstract Schemas operations may throw a <code>DOMSystemException</code> as
18  * described in their descriptions.
19  * <p>See also the <a HREF='http://www.w3.org/TR/2001/WD-DOM-Level-3-ASLS-20011025'>Document Object Model (DOM) Level 3 Abstract Schemas and Load
20 and Save Specification</a>.
21  */

22 public class DOMASException extends RuntimeException JavaDoc {
23     public DOMASException(short code, String JavaDoc message) {
24        super(message);
25        this.code = code;
26     }
27     public short code;
28     // ASExceptionCode
29
/**
30      * If an element declaration already exists with the same name within an
31      * <code>AS_CHOICE</code> operator.
32      */

33     public static final short DUPLICATE_NAME_ERR = 1;
34     /**
35      * If the type of the <code>ASObject</code> is neither an
36      * <code>ASContentModel</code> nor an <code>ASElementDeclaration</code>.
37      */

38     public static final short TYPE_ERR = 2;
39     /**
40      * If the <code>DocumentEditAS</code> related to the node does not have
41      * any active <code>ASModel</code> and <code>wfValidityCheckLevel</code>
42      * is set to <code>PARTIAL</code> or <code>STRICT_VALIDITY_CHECK</code>.
43      */

44     public static final short NO_AS_AVAILABLE = 3;
45     /**
46      * When <code>mimeTypeCheck</code> is <code>true</code> and the input
47      * source has an incorrect MIME Type. See the attribute
48      * <code>mimeTypeCheck</code>.
49      */

50     public static final short WRONG_MIME_TYPE_ERR = 4;
51
52 }
53
Popular Tags