/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM xpcexception.idl
 */

#ifndef __gen_xpcexception_h__
#define __gen_xpcexception_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsIException_h__
#include "nsIException.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIXPCException */
#define NS_IXPCEXCEPTION_IID_STR "b2a34010-3983-11d3-9888-006008962422"

#define NS_IXPCEXCEPTION_IID \
  {0xb2a34010, 0x3983, 0x11d3, \
    { 0x98, 0x88, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}

class NS_NO_VTABLE nsIXPCException : public nsIException {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPCEXCEPTION_IID)

  /* void initialize (in string aMessage, in nsresult aResult, in string aName, in nsIStackFrame aLocation, in nsISupports aData, in nsIException aInner); */
  NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCEXCEPTION \
  NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCEXCEPTION(_to) \
  NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner) { return _to ## Initialize(aMessage, aResult, aName, aLocation, aData, aInner); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCEXCEPTION(_to) \
  NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> Initialize(aMessage, aResult, aName, aLocation, aData, aInner); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsXPCException : public nsIXPCException
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIXPCEXCEPTION

  nsXPCException();
  virtual ~nsXPCException();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXPCException, nsIXPCException)

nsXPCException::nsXPCException()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

nsXPCException::~nsXPCException()
{
  /* destructor code */
}

/* void initialize (in string aMessage, in nsresult aResult, in string aName, in nsIStackFrame aLocation, in nsISupports aData, in nsIException aInner); */
NS_IMETHODIMP nsXPCException::Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIXPCDOMException */
#define NS_IXPCDOMEXCEPTION_IID_STR "84279040-40ce-11d5-90bb-0010a4e73d9a"

#define NS_IXPCDOMEXCEPTION_IID \
  {0x84279040, 0x40ce, 0x11d5, \
    { 0x90, 0xbb, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}

class NS_NO_VTABLE nsIXPCDOMException : public nsIXPCException {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPCDOMEXCEPTION_IID)

  enum { INDEX_SIZE_ERR = 1U };

  enum { DOMSTRING_SIZE_ERR = 2U };

  enum { HIERARCHY_REQUEST_ERR = 3U };

  enum { WRONG_DOCUMENT_ERR = 4U };

  enum { INVALID_CHARACTER_ERR = 5U };

  enum { NO_DATA_ALLOWED_ERR = 6U };

  enum { NO_MODIFICATION_ALLOWED_ERR = 7U };

  enum { NOT_FOUND_ERR = 8U };

  enum { NOT_SUPPORTED_ERR = 9U };

  enum { INUSE_ATTRIBUTE_ERR = 10U };

  enum { INVALID_STATE_ERR = 11U };

  enum { SYNTAX_ERR = 12U };

  enum { INVALID_MODIFICATION_ERR = 13U };

  enum { NAMESPACE_ERR = 14U };

  enum { INVALID_ACCESS_ERR = 15U };

  /* readonly attribute unsigned long code; */
  NS_IMETHOD GetCode(PRUint32 *aCode) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIXPCDOMEXCEPTION \
  NS_IMETHOD GetCode(PRUint32 *aCode); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIXPCDOMEXCEPTION(_to) \
  NS_IMETHOD GetCode(PRUint32 *aCode) { return _to ## GetCode(aCode); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIXPCDOMEXCEPTION(_to) \
  NS_IMETHOD GetCode(PRUint32 *aCode) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##->GetCode(aCode); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsXPCDOMException : public nsIXPCDOMException
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIXPCDOMEXCEPTION

  nsXPCDOMException();
  virtual ~nsXPCDOMException();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsXPCDOMException, nsIXPCDOMException)

nsXPCDOMException::nsXPCDOMException()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

nsXPCDOMException::~nsXPCDOMException()
{
  /* destructor code */
}

/* readonly attribute unsigned long code; */
NS_IMETHODIMP nsXPCDOMException::GetCode(PRUint32 *aCode)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

/********************************************************/
// {5632BF70-51EC-11d3-9896-006008962422}
#define NS_XPCEXCEPTION_CID  \
{ 0x5632bf70, 0x51ec, 0x11d3, \
    { 0x98, 0x96, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }

#endif /* __gen_xpcexception_h__ */
