Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions
nsExceptionManager Class Reference

Exception Manager definition. More...

Inheritance diagram for nsExceptionManager:
Inheritance graph
[legend]
Collaboration diagram for nsExceptionManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIEXCEPTIONMANAGER 
nsExceptionManager (nsExceptionService *svc)
void setCurrentException (in nsIException error)
 Sets (or clears with nsnull) the current error on the this thread.
nsIException getCurrentException ()
 Gets the current error for the current thread, or NULL if no error.
nsIException getExceptionFromProvider (in nsresult rc, in nsIException defaultException)
 Gets an exception from a registered exception provider.

Public Attributes

nsCOMPtr< nsIExceptionmCurrentException
nsExceptionManagermNextThread
nsExceptionServicemService

Private Member Functions

 ~nsExceptionManager ()

Detailed Description

Exception Manager definition.

Definition at line 69 of file nsExceptionService.cpp.


Constructor & Destructor Documentation

Definition at line 99 of file nsExceptionService.cpp.

                                                              :
  mNextThread(nsnull),
  mService(svc)
{
  /* member initializers and constructor code */
#ifdef NS_DEBUG
  PR_AtomicIncrement(&totalInstances);
#endif
}

Here is the call graph for this function:

Definition at line 109 of file nsExceptionService.cpp.

{
  /* destructor code */
#ifdef NS_DEBUG
  PR_AtomicDecrement(&totalInstances);
#endif // NS_DEBUG
}

Here is the call graph for this function:


Member Function Documentation

Gets the current error for the current thread, or NULL if no error.

Gets an exception from a registered exception provider.

This has no effect on the "current exception"

Sets (or clears with nsnull) the current error on the this thread.


Member Data Documentation

Definition at line 77 of file nsExceptionService.cpp.

Definition at line 78 of file nsExceptionService.cpp.

Definition at line 79 of file nsExceptionService.cpp.


The documentation for this class was generated from the following file: