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

96 lines
3.9 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 DOMErrorHandler">Interface DOMErrorHandler</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre>public interface <span class="typeNameLabel">DOMErrorHandler</span></pre>
<div class="block">
<span><code>DOMErrorHandler</code>是在报告处理XML数据时发生的错误或进行其他处理例如验证文档DOM实现可以调用的回调接口。</span>
<span><code>DOMErrorHandler</code>对象可以连接到一个<code>Document</code>使用的“错误处理” <code>DOMConfiguration</code>接口。</span>
<span>如果在操作期间需要报告多个错误,则传递给错误处理程序的错误的序列和数字取决于实现。</span>
<p> <span>使用DOM实现的应用程序有望实现此接口。</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="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
DOM 3级
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/w3c/dom/DOMErrorHandler.html#handleError-org.w3c.dom.DOMError-">handleError</a></span>(<a href="../../../org/w3c/dom/DOMError.html" title="interface in org.w3c.dom">DOMError</a> error)</code>
<div class="block">
当发生错误时,该错误处理程序将调用此方法。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="handleError-org.w3c.dom.DOMError-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>handleError</h4> <pre>boolean handleError(<a href="../../../org/w3c/dom/DOMError.html" title="interface in org.w3c.dom">DOMError</a> error)</pre>
<div class="block">
<span>当发生错误时,该错误处理程序将调用此方法。</span>
<br/>
<span>如果从该方法抛出异常,则被认为等同于返回<code>true</code></span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<span><code>error</code> - 描述错误的错误对象。</span>
<span>该对象可以通过跨多次调用<code>handleError</code>方法的DOM实现来重用。</span>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<span>如果<code>handleError</code>方法返回<code>false</code> 则DOM实现应尽可能停止当前处理。</span>
<span>如果该方法返回<code>true</code> ,处理可能会依照<code>DOMError.severity</code>继续。</span>
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>