uTools-Manuals/docs/java/org/w3c/dom/DOMException.html

572 lines
23 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact2, compact3
</div>
<div class="subTitle">
org.w3c.dom
</div>
<h2 class="title" title="Class DOMException">Class DOMException</h2>
</div><div class="contentContainer">
<ul class="inheritance">
<li><a href="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../java/lang/Throwable.html" title="class in java.lang">java.lang.Throwable</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../java/lang/Exception.html" title="class in java.lang">java.lang.Exception</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../java/lang/RuntimeException.html" title="class in java.lang">java.lang.RuntimeException</a></li>
<li>
<ul class="inheritance">
<li>org.w3c.dom.DOMException</li>
</ul> </li>
</ul> </li>
</ul> </li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Implemented Interfaces:
</dt>
<dd>
<span><a href="../../../java/io/Serializable.html" title="java.io中的接口">Serializable</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public class <span class="typeNameLabel">DOMException</span>
extends <a href="../../../java/lang/RuntimeException.html" title="class in java.lang">RuntimeException</a></pre>
<div class="block">
<span>DOM操作只会在“异常”情况下引发异常即当操作无法执行时出于逻辑原因因为数据丢失或者由于实现变得不稳定</span>
<span>通常DOM方法在普通处理情况下返回特定的错误值例如使用<code>NodeList</code>时的<code>NodeList</code>错误。</span>
<p> <span>在其他情况下,实施应引起其他例外。</span> <span>例如,当<code>null</code>不被预期时,如果传递<code>null</code>参数,则实现应该引发实现相关的异常。</span> </p>
<p> <span>某些语言和对象系统不支持异常的概念。</span> <span>对于这样的系统,可以使用本机错误报告机制来指示错误状况。</span> <span>对于某些绑定,例如,方法可能返回类似于相应方法描述中列出的错误代码。</span> </p>
<p> <span>另见<a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407">Document Object Model (DOM) Level 3 Core Specification</a></span> </p>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../serialized-form.html#org.w3c.dom.DOMException">Serialized Form</a>
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- --> </a> <h3>Field Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<caption>
<span>Fields</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#code">code</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#DOMSTRING_SIZE_ERR">DOMSTRING_SIZE_ERR</a></span></code>
<div class="block">
如果指定的文本范围不符合
<code>DOMString</code>
</div> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#HIERARCHY_REQUEST_ERR">HIERARCHY_REQUEST_ERR</a></span></code>
<div class="block">
如果任何一个
<code>Node</code>被插入某个地方,它不属于。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#INDEX_SIZE_ERR">INDEX_SIZE_ERR</a></span></code>
<div class="block">
如果索引或大小为负,或大于允许的值。
</div> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#INUSE_ATTRIBUTE_ERR">INUSE_ATTRIBUTE_ERR</a></span></code>
<div class="block">
如果尝试添加其他地方已经使用的属性。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#INVALID_ACCESS_ERR">INVALID_ACCESS_ERR</a></span></code>
<div class="block">
如果基础对象不支持参数或操作。
</div> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#INVALID_CHARACTER_ERR">INVALID_CHARACTER_ERR</a></span></code>
<div class="block">
如果指定了无效或非法字符例如XML名称。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#INVALID_MODIFICATION_ERR">INVALID_MODIFICATION_ERR</a></span></code>
<div class="block">
如果尝试修改底层对象的类型。
</div> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#INVALID_STATE_ERR">INVALID_STATE_ERR</a></span></code>
<div class="block">
如果尝试使用不是或不再可用的对象。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#NAMESPACE_ERR">NAMESPACE_ERR</a></span></code>
<div class="block">
如果尝试以不符合命名空间的方式创建或更改对象。
</div> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#NO_DATA_ALLOWED_ERR">NO_DATA_ALLOWED_ERR</a></span></code>
<div class="block">
如果被指定的数据
<code>Node</code>不支持数据。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#NO_MODIFICATION_ALLOWED_ERR">NO_MODIFICATION_ALLOWED_ERR</a></span></code>
<div class="block">
如果尝试修改不允许修改的对象。
</div> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#NOT_FOUND_ERR">NOT_FOUND_ERR</a></span></code>
<div class="block">
如果尝试在不存在的上下文中
<code>Node</code>
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#NOT_SUPPORTED_ERR">NOT_SUPPORTED_ERR</a></span></code>
<div class="block">
如果实现不支持所请求的对象或操作类型。
</div> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#SYNTAX_ERR">SYNTAX_ERR</a></span></code>
<div class="block">
如果指定了无效或非法的字符串。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#TYPE_MISMATCH_ERR">TYPE_MISMATCH_ERR</a></span></code>
<div class="block">
如果对象的类型与与对象关联的参数的预期类型不兼容。
</div> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#VALIDATION_ERR">VALIDATION_ERR</a></span></code>
<div class="block">
如果对诸如
<code>insertBefore</code>
<code>removeChild</code>之类的方法的调用将使
<code>Node</code>对于“部分有效性”无效,则该异常将被提升,并且操作将不会被执行。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#WRONG_DOCUMENT_ERR">WRONG_DOCUMENT_ERR</a></span></code>
<div class="block">
如果一个
<code>Node</code>被用在不同于创建它的文档(不支持它)的文档中。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- --> </a> <h3>构造方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption>
<span>构造方法</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMException.html#DOMException-short-java.lang.String-">DOMException</a></span>(short code, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> message)</code> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Throwable">
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../java/lang/Throwable.html" title="class in java.lang">Throwable</a></h3> <code><a href="../../../java/lang/Throwable.html#addSuppressed-java.lang.Throwable-">addSuppressed</a>, <a href="../../../java/lang/Throwable.html#fillInStackTrace--">fillInStackTrace</a>, <a href="../../../java/lang/Throwable.html#getCause--">getCause</a>, <a href="../../../java/lang/Throwable.html#getLocalizedMessage--">getLocalizedMessage</a>, <a href="../../../java/lang/Throwable.html#getMessage--">getMessage</a>, <a href="../../../java/lang/Throwable.html#getStackTrace--">getStackTrace</a>, <a href="../../../java/lang/Throwable.html#getSuppressed--">getSuppressed</a>, <a href="../../../java/lang/Throwable.html#initCause-java.lang.Throwable-">initCause</a>, <a href="../../../java/lang/Throwable.html#printStackTrace--">printStackTrace</a>, <a href="../../../java/lang/Throwable.html#printStackTrace-java.io.PrintStream-">printStackTrace</a>, <a href="../../../java/lang/Throwable.html#printStackTrace-java.io.PrintWriter-">printStackTrace</a>, <a href="../../../java/lang/Throwable.html#setStackTrace-java.lang.StackTraceElement:A-">setStackTrace</a>, <a href="../../../java/lang/Throwable.html#toString--">toString</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../java/lang/Object.html#clone--">clone</a>, <a href="../../../java/lang/Object.html#equals-java.lang.Object-">equals</a>, <a href="../../../java/lang/Object.html#finalize--">finalize</a>, <a href="../../../java/lang/Object.html#getClass--">getClass</a>, <a href="../../../java/lang/Object.html#hashCode--">hashCode</a>, <a href="../../../java/lang/Object.html#notify--">notify</a>, <a href="../../../java/lang/Object.html#notifyAll--">notifyAll</a>, <a href="../../../java/lang/Object.html#wait--">wait</a>, <a href="../../../java/lang/Object.html#wait-long-">wait</a>, <a href="../../../java/lang/Object.html#wait-long-int-">wait</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- --> </a> <h3>字段详细信息</h3> <a name="code">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>code</h4> <pre>public short code</pre> </li>
</ul> <a name="INDEX_SIZE_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>INDEX_SIZE_ERR</h4> <pre>public static final short INDEX_SIZE_ERR</pre>
<div class="block">
如果索引或大小为负,或大于允许的值。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.INDEX_SIZE_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="DOMSTRING_SIZE_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>DOMSTRING_SIZE_ERR</h4> <pre>public static final short DOMSTRING_SIZE_ERR</pre>
<div class="block">
如果指定的文本范围不符合
<code>DOMString</code>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.DOMSTRING_SIZE_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="HIERARCHY_REQUEST_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>HIERARCHY_REQUEST_ERR</h4> <pre>public static final short HIERARCHY_REQUEST_ERR</pre>
<div class="block">
如果任何
<code>Node</code>被插入某处,它不属于。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.HIERARCHY_REQUEST_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="WRONG_DOCUMENT_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>WRONG_DOCUMENT_ERR</h4> <pre>public static final short WRONG_DOCUMENT_ERR</pre>
<div class="block">
如果一个
<code>Node</code>在与创建它不同的文档中使用(不支持它)。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.WRONG_DOCUMENT_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="INVALID_CHARACTER_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>INVALID_CHARACTER_ERR</h4> <pre>public static final short INVALID_CHARACTER_ERR</pre>
<div class="block">
如果指定了无效或非法字符例如XML名称。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.INVALID_CHARACTER_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="NO_DATA_ALLOWED_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>NO_DATA_ALLOWED_ERR</h4> <pre>public static final short NO_DATA_ALLOWED_ERR</pre>
<div class="block">
如果为不支持数据的
<code>Node</code>指定数据。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.NO_DATA_ALLOWED_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="NO_MODIFICATION_ALLOWED_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>NO_MODIFICATION_ALLOWED_ERR</h4> <pre>public static final short NO_MODIFICATION_ALLOWED_ERR</pre>
<div class="block">
如果尝试修改不允许修改的对象。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.NO_MODIFICATION_ALLOWED_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="NOT_FOUND_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>NOT_FOUND_ERR</h4> <pre>public static final short NOT_FOUND_ERR</pre>
<div class="block">
如果尝试在不存在的上下文中
<code>Node</code>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.NOT_FOUND_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="NOT_SUPPORTED_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>NOT_SUPPORTED_ERR</h4> <pre>public static final short NOT_SUPPORTED_ERR</pre>
<div class="block">
如果实现不支持所请求的对象或操作类型。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.NOT_SUPPORTED_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="INUSE_ATTRIBUTE_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>INUSE_ATTRIBUTE_ERR</h4> <pre>public static final short INUSE_ATTRIBUTE_ERR</pre>
<div class="block">
如果尝试添加其他地方已经使用的属性。
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.INUSE_ATTRIBUTE_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="INVALID_STATE_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>INVALID_STATE_ERR</h4> <pre>public static final short INVALID_STATE_ERR</pre>
<div class="block">
如果尝试使用不是或不再可用的对象。
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM级别2
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.INVALID_STATE_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="SYNTAX_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>SYNTAX_ERR</h4> <pre>public static final short SYNTAX_ERR</pre>
<div class="block">
如果指定了无效或非法的字符串。
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM级别2
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.SYNTAX_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="INVALID_MODIFICATION_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>INVALID_MODIFICATION_ERR</h4> <pre>public static final short INVALID_MODIFICATION_ERR</pre>
<div class="block">
如果尝试修改底层对象的类型。
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM级别2
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.INVALID_MODIFICATION_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="NAMESPACE_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>NAMESPACE_ERR</h4> <pre>public static final short NAMESPACE_ERR</pre>
<div class="block">
如果尝试以不符合命名空间的方式创建或更改对象。
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM级别2
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.NAMESPACE_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="INVALID_ACCESS_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>INVALID_ACCESS_ERR</h4> <pre>public static final short INVALID_ACCESS_ERR</pre>
<div class="block">
如果基础对象不支持参数或操作。
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM级别2
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.INVALID_ACCESS_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="VALIDATION_ERR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>VALIDATION_ERR</h4> <pre>public static final short VALIDATION_ERR</pre>
<div class="block">
<span>如果对诸如<code>insertBefore</code><code>removeChild</code>之类的方法的调用将使<code>Node</code>对于“部分有效性”无效,则该异常将被提出,并且操作将不会被执行。</span>
<span>此代码用于[ <a href="http://www.w3.org/TR/2004/REC-DOM-Level-3-Val-20040127/">DOM Level 3 Validation</a> ]。</span>
<span>有关详细信息,请参阅本规范。</span>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM 3级
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.VALIDATION_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="TYPE_MISMATCH_ERR">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>TYPE_MISMATCH_ERR</h4> <pre>public static final short TYPE_MISMATCH_ERR</pre>
<div class="block">
如果对象的类型与与对象关联的参数的预期类型不兼容。
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM 3级
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMException.TYPE_MISMATCH_ERR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="DOMException-short-java.lang.String-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>DOMException</h4> <pre>public DOMException(short code,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> message)</pre> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>