Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
nsSOAPException Class Reference

#include <nsSOAPException.h>

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

List of all members.

Public Member Functions

 nsSOAPException (nsresult aStatus, const nsAString &aMessage, const nsAString &aName, nsIException *aInner)
virtual ~nsSOAPException ()
string toString ()

Static Public Member Functions

NS_DECL_ISUPPORTS static
NS_DECL_NSIEXCEPTION nsresult 
AddException (nsresult aStatus, const nsAString &aName, const nsAString &aMessage, PRBool aClear=PR_FALSE)

Public Attributes

readonly attribute string message
readonly attribute nsresult result
readonly attribute string name
readonly attribute string filename
readonly attribute PRUint32 lineNumber
readonly attribute PRUint32 columnNumber
readonly attribute nsIStackFrame location
readonly attribute nsIException inner
readonly attribute nsISupports data

Protected Attributes

nsresult mStatus
nsString mName
nsString mMessage
nsCOMPtr< nsIExceptionmInner
nsCOMPtr< nsIStackFramemFrame

Detailed Description

Definition at line 48 of file nsSOAPException.h.


Constructor & Destructor Documentation

nsSOAPException::nsSOAPException ( nsresult  aStatus,
const nsAString &  aMessage,
const nsAString &  aName,
nsIException aInner 
)

Definition at line 42 of file nsSOAPException.cpp.

                                                                                   :
                                 mStatus(aStatus),mName(aName),mMessage(aMessage),
                                 mInner(aInner)
{
  nsresult rc;
  nsCOMPtr<nsIXPConnect> xpc(do_GetService(nsIXPConnect::GetCID(), &rc));
  if(NS_SUCCEEDED(rc)) {
    xpc->GetCurrentJSStack(getter_AddRefs(mFrame));
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 54 of file nsSOAPException.cpp.

{
}

Member Function Documentation

nsresult nsSOAPException::AddException ( nsresult  aStatus,
const nsAString &  aName,
const nsAString &  aMessage,
PRBool  aClear = PR_FALSE 
) [static]

Definition at line 197 of file nsSOAPException.cpp.

{
  nsCOMPtr<nsIExceptionService> xs =
    do_GetService(NS_EXCEPTIONSERVICE_CONTRACTID);
  if (xs) {
    nsCOMPtr<nsIExceptionManager> xm;
    xs->GetCurrentExceptionManager(getter_AddRefs(xm));
    if (xm) {
      nsCOMPtr<nsIException> old;
      if (!aClear)
        xs->GetCurrentException(getter_AddRefs(old));
      nsCOMPtr<nsIException> exception = new nsSOAPException(aStatus, aName, 
        aMessage, old);
      if (exception) {
        xm->SetCurrentException(exception);
      }
    }
  }
  return aStatus;
}

Here is the call graph for this function:

string nsIException::toString ( ) [inherited]

Member Data Documentation

Definition at line 89 of file nsIException.idl.

readonly attribute nsISupports nsIException::data [inherited]

Definition at line 97 of file nsIException.idl.

readonly attribute string nsIException::filename [inherited]

Definition at line 84 of file nsIException.idl.

Definition at line 94 of file nsIException.idl.

Definition at line 86 of file nsIException.idl.

Definition at line 92 of file nsIException.idl.

readonly attribute string nsIException::message [inherited]

Definition at line 70 of file nsIException.idl.

Definition at line 64 of file nsSOAPException.h.

Definition at line 63 of file nsSOAPException.h.

Definition at line 62 of file nsSOAPException.h.

Definition at line 61 of file nsSOAPException.h.

Definition at line 60 of file nsSOAPException.h.

readonly attribute string nsIException::name [inherited]

Definition at line 74 of file nsIException.idl.

readonly attribute nsresult nsIException::result [inherited]

Definition at line 72 of file nsIException.idl.


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