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.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com