Lines Matching refs:nsExceptionService

40 #include "nsExceptionService.h"
48 #define CHECK_MANAGER_USE_OK() if (!mService || !nsExceptionService::lock) return NS_ERROR_NOT_INITIALIZED
75 nsExceptionManager(nsExceptionService *svc);
79 nsExceptionService *mService; // not ref-counted
121 nsExceptionManager::nsExceptionManager(nsExceptionService *svc) :
166 PRUintn nsExceptionService::tlsIndex = BAD_TLS_INDEX;
167 PRLock *nsExceptionService::lock = PR_FALSE;
168 nsExceptionManager *nsExceptionService::firstThread = nsnull;
171 PRInt32 nsExceptionService::totalInstances = 0;
174 NS_IMPL_THREADSAFE_ISUPPORTS2(nsExceptionService, nsIExceptionService, nsIObserver)
176 nsExceptionService::nsExceptionService()
181 NS_ERROR("The nsExceptionService is a singleton!");
200 nsExceptionService::~nsExceptionService()
210 void nsExceptionService::ThreadDestruct( void *data )
214 // exception managers are stopped after nsExceptionService is shut down,
217 NS_WARNING("nsExceptionService ignoring thread destruction after shutdown");
225 void nsExceptionService::Shutdown()
237 NS_IMETHODIMP nsExceptionService::SetCurrentException(nsIException *error)
248 NS_IMETHODIMP nsExceptionService::GetCurrentException(nsIException **_retval)
259 NS_IMETHODIMP nsExceptionService::GetExceptionFromProvider(nsresult rc,
267 NS_IMETHODIMP nsExceptionService::GetCurrentExceptionManager(nsIExceptionManager * *aCurrentScriptManager)
286 NS_IMETHODIMP nsExceptionService::RegisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 errorModule)
298 NS_IMETHODIMP nsExceptionService::UnregisterExceptionProvider(nsIExceptionProvider *provider, PRUint32 errorModule)
310 NS_IMETHODIMP nsExceptionService::Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *someData)
317 nsExceptionService::DoGetExceptionFromProvider(nsresult errCode,
345 /*static*/ void nsExceptionService::AddThread(nsExceptionManager *thread)
354 /*static*/ void nsExceptionService::DoDropThread(nsExceptionManager *thread)
366 /*static*/ void nsExceptionService::DropThread(nsExceptionManager *thread)
373 /*static*/ void nsExceptionService::DropAllThreads()