WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIExceptionService

IID:35A88F54-F267-4414-92A7-191F6454AB52
Inherits From:nsIExceptionManager

This interface is intended to be used as a service.

This interface is implemented by the following components:


Properties

readonly nsIExceptionManager currentExceptionManager


Methods

void registerExceptionProvider ( nsIExceptionProvider provider , PRUint32 moduleCode ) void unregisterExceptionProvider ( nsIExceptionProvider provider , PRUint32 moduleCode )

void registerExceptionProvider ( nsIExceptionProvider provider , PRUint32 moduleCode )

Installs an "exception provider" which is capable of translating an nsresult into an exception. This enables error providers to return simple nsresults and only provide rich errors when specifically requested. It also has the advantage of allowing code like the DOM to handle all errors in a single function rather than at each XPCOM entry point. NOTE: This interface must be thread-safe - it will be called

Arguments:
provider
moduleCode

void unregisterExceptionProvider ( nsIExceptionProvider provider , PRUint32 moduleCode )

Arguments:
provider
moduleCode

Reference documentation is generated from Mozilla's source.