Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsXPathException.cpp File Reference
#include "nsXPathException.h"
#include "nsCRT.h"
#include "nsIDOMClassInfo.h"
#include "nsIBaseDOMException.h"
#include "prprf.h"

Go to the source code of this file.

Functions

static void TXResultToNameAndMessage (nsresult aNSResult, const char **aName, const char **aMessage)
NS_DECL_NSIDOMXPATHEXCEPTION IMPL_DOM_EXCEPTION_TAIL (nsXPathException, nsIDOMXPathException, XPathException, NS_ERROR_MODULE_DOM_XPATH, TXResultToNameAndMessage) NS_IMETHODIMP nsXPathException

Variables

static const char kInvalidExpressionErrName [] = "NS_ERROR_DOM_INVALID_EXPRESSION_ERR"
static const char kInvalidExpressionErrMessage [] = NS_ERROR_DOM_INVALID_EXPRESSION_MSG
static const char kTypeErrName [] = "NS_ERROR_DOM_TYPE_ERR"
static const char kTypeErrMessage [] = NS_ERROR_DOM_TYPE_MSG

Function Documentation

NS_DECL_NSIDOMXPATHEXCEPTION IMPL_DOM_EXCEPTION_TAIL ( nsXPathException  ,
nsIDOMXPathException  ,
XPathException  ,
NS_ERROR_MODULE_DOM_XPATH  ,
TXResultToNameAndMessage   
)

Definition at line 75 of file nsXPathException.cpp.

{
    NS_ENSURE_ARG_POINTER(aCode);
    nsresult result;
    mBase->GetResult(&result);
    *aCode = NS_ERROR_GET_CODE(result);

    return NS_OK;
}
static void TXResultToNameAndMessage ( nsresult  aNSResult,
const char **  aName,
const char **  aMessage 
) [static]

Definition at line 51 of file nsXPathException.cpp.

{
    if (aNSResult == NS_ERROR_DOM_INVALID_EXPRESSION_ERR) {
        *aName = kInvalidExpressionErrName;
        *aMessage = kInvalidExpressionErrMessage;
    }
    else if (aNSResult == NS_ERROR_DOM_TYPE_ERR) {
        *aName = kTypeErrName;
        *aMessage = kTypeErrMessage;
    }
    else {
        NS_WARNING("Huh, someone is throwing non-XPath DOM errors using the XPath DOM module!");
        *aName = nsnull;
        *aMessage = nsnull;
    }

    return;
}

Variable Documentation

Definition at line 46 of file nsXPathException.cpp.

const char kInvalidExpressionErrName[] = "NS_ERROR_DOM_INVALID_EXPRESSION_ERR" [static]

Definition at line 45 of file nsXPathException.cpp.

Definition at line 48 of file nsXPathException.cpp.

const char kTypeErrName[] = "NS_ERROR_DOM_TYPE_ERR" [static]

Definition at line 47 of file nsXPathException.cpp.