Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsDOMScriptObjectFactory.cpp File Reference
#include "nsDOMScriptObjectFactory.h"
#include "xpcexception.h"
#include "nsScriptNameSpaceManager.h"
#include "nsIObserverService.h"
#include "nsJSEnvironment.h"
#include "nsJSEventListener.h"
#include "nsGlobalWindow.h"
#include "nsIJSContextStack.h"
#include "nsDOMException.h"
#include "nsCRT.h"

Go to the source code of this file.

Functions

static nsresult CreateXPConnectException (nsresult aResult, nsIException *aDefaultException, nsIException **_retval)

Function Documentation

static nsresult CreateXPConnectException ( nsresult  aResult,
nsIException aDefaultException,
nsIException **  _retval 
) [static]

Definition at line 205 of file nsDOMScriptObjectFactory.cpp.

{
  nsresult rv = NS_OK;
  nsCOMPtr<nsIXPCException> exception(
      do_CreateInstance("@mozilla.org/js/xpc/Exception;1", &rv));
  NS_ENSURE_SUCCESS(rv, rv);

  rv = exception->Initialize(nsnull, aResult, nsnull, nsnull, nsnull, nsnull);
  NS_ENSURE_SUCCESS(rv, rv);

  NS_ADDREF(*_retval = exception);
  return NS_OK;
}

Here is the call graph for this function: