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
10
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
13
package org.apache.xerces.dom3.as;
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>.
22
public class DOMASException extends RuntimeException {
23
public DOMASException(short code, String message) {
30
* If an element declaration already exists with the same name within an
31
* <code>AS_CHOICE</code> operator.
33
public static final short DUPLICATE_NAME_ERR = 1;
35
* If the type of the <code>ASObject</code> is neither an
36
* <code>ASContentModel</code> nor an <code>ASElementDeclaration</code>.
38
public static final short TYPE_ERR = 2;
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>.
44
public static final short NO_AS_AVAILABLE = 3;
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>.
50
public static final short WRONG_MIME_TYPE_ERR = 4;