Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 742619 of DOMErrorHandler

  • Revision slug: Web/API/DOMErrorHandler
  • Revision title: DOMErrorHandler
  • Revision id: 742619
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment Mountain View APIRef Project

Revision Content

{{APIRef("DOM")}}{{Obsolete_header}}

NOTE: This is not implemented in Mozilla. For DOMException, see DOMException

Set as "error-handler" parameter in DOMConfiguration.setParameter . Implementation may provide a default handler. DOMError.relatedData will contain closest node to where error occurred or contain the Document node if it is unable to be determined. Document mutations from within the error handler result in implementation-dependent behavior. If there are to be multiple errors, the sequence and numbers of the errors passed to the error handler are also implementation dependent. The application using the DOM implementation implements this interface:

Properties

This interface neither implements, nor inherits, any property.

Methods

{{domxref("DOMErrorHandler.handleError()")}}
If returns false, DOM implementation should stop processing; if true, may continue depending on {{domxref("DOMError.severity")}}.

Specifications

Revision Source

<p>{{APIRef("DOM")}}{{Obsolete_header}}</p>

<div class="warning">
<p>NOTE:&nbsp;This is not implemented in Mozilla. For DOMException, see <a href="/En/DOM/DOMException" title="En/DOM/DOMException">DOMException</a></p>
</div>

<p>Set as "error-handler"&nbsp;parameter in <a class="internal" href="/En/DOM/DOMConfiguration.setParameter" title="En/DOM/DOMConfiguration.setParameter"><code>DOMConfiguration.setParameter</code></a> . Implementation may provide a default handler. <a class="internal" href="/En/DOM/DOMError.relatedData" title="En/DOM/DOMError.relatedData"><code>DOMError.relatedData</code></a> will contain closest node to where error occurred or contain the Document node if it is unable to be determined. Document mutations from within the error handler result in implementation-dependent behavior. If there are to be multiple errors, the sequence and numbers of the errors passed to the error handler are also implementation dependent. The application using the DOM&nbsp;implementation implements this interface:</p>

<h2 id="Properties">Properties</h2>

<p><em>This interface neither implements, nor inherits, any property. </em></p>

<h2 id="Methods">Methods</h2>

<dl>
 <dt>{{domxref("DOMErrorHandler.handleError()")}}</dt>
 <dd>If returns <code>false</code>, DOM&nbsp;implementation should stop processing; if true, may continue depending on {{domxref("DOMError.severity")}}.</dd>
</dl>

<h2 id="Specification">Specifications</h2>

<ul>
 <li><a class="external" href="https://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-Interfaces-DOMErrorHandler" rel="freelink">https://www.w3.org/TR/DOM-Level-3-Cor...OMErrorHandler</a></li>
</ul>
Revert to this revision