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

254 lines
11 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="Interface DOMError">Interface DOMError</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre>public interface <span class="typeNameLabel">DOMError</span></pre>
<div class="block">
<span><code>DOMError</code>是描述错误的界面。</span>
<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="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM 3级
</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>static short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMError.html#SEVERITY_ERROR">SEVERITY_ERROR</a></span></code>
<div class="block">
<code>DOMError</code>的错误的
<code>DOMError</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/DOMError.html#SEVERITY_FATAL_ERROR">SEVERITY_FATAL_ERROR</a></span></code>
<div class="block">
<code>DOMError</code>描述的错误的
<code>DOMError</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/DOMError.html#SEVERITY_WARNING">SEVERITY_WARNING</a></span></code>
<div class="block">
DOMError描述的错误的
<code>DOMError</code>是警告。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../../../org/w3c/dom/DOMLocator.html" title="interface in org.w3c.dom">DOMLocator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMError.html#getLocation--">getLocation</a></span>()</code>
<div class="block">
错误的位置。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMError.html#getMessage--">getMessage</a></span>()</code>
<div class="block">
描述发生错误的实现特定字符串。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMError.html#getRelatedData--">getRelatedData</a></span>()</code>
<div class="block">
相关数据相关
<code>DOMError.type</code>如有。
</div> </td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMError.html#getRelatedException--">getRelatedException</a></span>()</code>
<div class="block">
相关的平台依赖异常如果有的话。
</div> </td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMError.html#getSeverity--">getSeverity</a></span>()</code>
<div class="block">
错误的严重性,无论是
<code>SEVERITY_WARNING</code>
<code>SEVERITY_ERROR</code> ,或
<code>SEVERITY_FATAL_ERROR</code>
</div> </td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code><a href="../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMError.html#getType--">getType</a></span>()</code>
<div class="block">
A
<code>DOMString</code>指出在
<code>relatedData</code>中预期哪些相关数据。
</div> </td>
</tr>
</tbody>
</table> </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="SEVERITY_WARNING">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>SEVERITY_WARNING</h4> <pre>static final short SEVERITY_WARNING</pre>
<div class="block">
<span>DOMError描述的错误的<code>DOMError</code>是警告。</span>
<span>A <code>SEVERITY_WARNING</code>不会导致处理停止,除非<code>DOMErrorHandler.handleError()</code>返回<code>false</code></span>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMError.SEVERITY_WARNING">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="SEVERITY_ERROR">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>SEVERITY_ERROR</h4> <pre>static final short SEVERITY_ERROR</pre>
<div class="block">
<span><code>DOMError</code>的错误的<code>DOMError</code>是错误的。</span>
<span>A <code>SEVERITY_ERROR</code>可能不会导致处理停止,如果错误可以恢复,除非<code>DOMErrorHandler.handleError()</code>返回<code>false</code></span>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMError.SEVERITY_ERROR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> <a name="SEVERITY_FATAL_ERROR">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>SEVERITY_FATAL_ERROR</h4> <pre>static final short SEVERITY_FATAL_ERROR</pre>
<div class="block">
<span><code>DOMError</code>描述的错误的<code>DOMError</code>是致命的错误。</span>
<span>A <code>SEVERITY_FATAL_ERROR</code>将导致正常处理停止。</span>
<span><code>DOMErrorHandler.handleError()</code>的返回值将被忽略,除非实现选择继续,在这种情况下行为将变得未定义。</span>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../constant-values.html#org.w3c.dom.DOMError.SEVERITY_FATAL_ERROR">Constant Field Values</a>
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getSeverity--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getSeverity</h4> <pre>short getSeverity()</pre>
<div class="block">
错误的严重性,无论是
<code>SEVERITY_WARNING</code>
<code>SEVERITY_ERROR</code> ,或
<code>SEVERITY_FATAL_ERROR</code>
</div> </li>
</ul> <a name="getMessage--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getMessage</h4> <pre><a href="../../../java/lang/String.html" title="class in java.lang">String</a> getMessage()</pre>
<div class="block">
描述发生错误的实现特定字符串。
</div> </li>
</ul> <a name="getType--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getType</h4> <pre><a href="../../../java/lang/String.html" title="class in java.lang">String</a> getType()</pre>
<div class="block">
<span>A <code>DOMString</code>指出在<code>relatedData</code>中预期哪些相关数据。</span>
<span>用户应参考错误的规范,以查找其<code>DOMString</code>类型和<code>relatedData</code>定义(如果有的话)。</span>
<p> <span><b>注意:</b>例如当“split-cdata-sections”参数正在使用时 <code>Document.normalizeDocument()</code>会生成警告。</span> <span>因此,该方法产生一个<code>SEVERITY_WARNING</code><code>type</code> <code>"cdata-sections-splitted"</code>和第一<code>CDATASection</code>节点按文档顺序从分割所得的由返回<code>relatedData</code>属性。</span> </p>
</div> </li>
</ul> <a name="getRelatedException--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getRelatedException</h4> <pre><a href="../../../java/lang/Object.html" title="class in java.lang">Object</a> getRelatedException()</pre>
<div class="block">
相关的平台依赖异常如果有的话。
</div> </li>
</ul> <a name="getRelatedData--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getRelatedData</h4> <pre><a href="../../../java/lang/Object.html" title="class in java.lang">Object</a> getRelatedData()</pre>
<div class="block">
相关数据相关的
<code>DOMError.type</code>如有。
</div> </li>
</ul> <a name="getLocation--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getLocation</h4> <pre><a href="../../../org/w3c/dom/DOMLocator.html" title="interface in org.w3c.dom">DOMLocator</a> getLocation()</pre>
<div class="block">
错误的位置。
</div> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>