/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl\nsIException.idl
 */

#ifndef __gen_nsIException_h__
#define __gen_nsIException_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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:    nsIStackFrame */
#define NS_ISTACKFRAME_IID_STR "4ed5cd87-401a-425a-8d8d-c28fbc1e88b2"

#define NS_ISTACKFRAME_IID \
  {0x4ed5cd87, 0x401a, 0x425a, \
    { 0x8d, 0x8d, 0xc2, 0x8f, 0xbc, 0x1e, 0x88, 0xb2 }}

class NS_NO_VTABLE nsIStackFrame : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTACKFRAME_IID)

  /* readonly attribute uint32_t language; */
  NS_IMETHOD GetLanguage(uint32_t *aLanguage) = 0;

  /* readonly attribute AUTF8String languageName; */
  NS_IMETHOD GetLanguageName(nsACString & aLanguageName) = 0;

  /* readonly attribute AString filename; */
  NS_IMETHOD GetFilename(nsAString & aFilename) = 0;

  /* readonly attribute AString name; */
  NS_IMETHOD GetName(nsAString & aName) = 0;

  /* readonly attribute int32_t lineNumber; */
  NS_IMETHOD GetLineNumber(int32_t *aLineNumber) = 0;

  /* readonly attribute int32_t columnNumber; */
  NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) = 0;

  /* readonly attribute AUTF8String sourceLine; */
  NS_IMETHOD GetSourceLine(nsACString & aSourceLine) = 0;

  /* readonly attribute nsIStackFrame caller; */
  NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) = 0;

  /* [implicit_jscontext,noscript] readonly attribute nsIStackFrame sanitized; */
  NS_IMETHOD GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized) = 0;

  /* readonly attribute AString formattedStack; */
  NS_IMETHOD GetFormattedStack(nsAString & aFormattedStack) = 0;

  /* AUTF8String toString (); */
  NS_IMETHOD ToString(nsACString & _retval) = 0;

  /* [noscript,nostdcall,notxpcom] boolean callerSubsumes (in JSContext aCx); */
  virtual bool CallerSubsumes(JSContext *aCx) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIStackFrame, NS_ISTACKFRAME_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTACKFRAME \
  NS_IMETHOD GetLanguage(uint32_t *aLanguage) MOZ_OVERRIDE; \
  NS_IMETHOD GetLanguageName(nsACString & aLanguageName) MOZ_OVERRIDE; \
  NS_IMETHOD GetFilename(nsAString & aFilename) MOZ_OVERRIDE; \
  NS_IMETHOD GetName(nsAString & aName) MOZ_OVERRIDE; \
  NS_IMETHOD GetLineNumber(int32_t *aLineNumber) MOZ_OVERRIDE; \
  NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) MOZ_OVERRIDE; \
  NS_IMETHOD GetSourceLine(nsACString & aSourceLine) MOZ_OVERRIDE; \
  NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) MOZ_OVERRIDE; \
  NS_IMETHOD GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized) MOZ_OVERRIDE; \
  NS_IMETHOD GetFormattedStack(nsAString & aFormattedStack) MOZ_OVERRIDE; \
  NS_IMETHOD ToString(nsACString & _retval) MOZ_OVERRIDE; \
  virtual bool CallerSubsumes(JSContext *aCx) MOZ_OVERRIDE; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTACKFRAME(_to) \
  NS_IMETHOD GetLanguage(uint32_t *aLanguage) MOZ_OVERRIDE { return _to GetLanguage(aLanguage); } \
  NS_IMETHOD GetLanguageName(nsACString & aLanguageName) MOZ_OVERRIDE { return _to GetLanguageName(aLanguageName); } \
  NS_IMETHOD GetFilename(nsAString & aFilename) MOZ_OVERRIDE { return _to GetFilename(aFilename); } \
  NS_IMETHOD GetName(nsAString & aName) MOZ_OVERRIDE { return _to GetName(aName); } \
  NS_IMETHOD GetLineNumber(int32_t *aLineNumber) MOZ_OVERRIDE { return _to GetLineNumber(aLineNumber); } \
  NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) MOZ_OVERRIDE { return _to GetColumnNumber(aColumnNumber); } \
  NS_IMETHOD GetSourceLine(nsACString & aSourceLine) MOZ_OVERRIDE { return _to GetSourceLine(aSourceLine); } \
  NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) MOZ_OVERRIDE { return _to GetCaller(aCaller); } \
  NS_IMETHOD GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized) MOZ_OVERRIDE { return _to GetSanitized(cx, aSanitized); } \
  NS_IMETHOD GetFormattedStack(nsAString & aFormattedStack) MOZ_OVERRIDE { return _to GetFormattedStack(aFormattedStack); } \
  NS_IMETHOD ToString(nsACString & _retval) MOZ_OVERRIDE { return _to ToString(_retval); } \
  virtual bool CallerSubsumes(JSContext *aCx) MOZ_OVERRIDE { return _to CallerSubsumes(aCx); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTACKFRAME(_to) \
  NS_IMETHOD GetLanguage(uint32_t *aLanguage) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguage(aLanguage); } \
  NS_IMETHOD GetLanguageName(nsACString & aLanguageName) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguageName(aLanguageName); } \
  NS_IMETHOD GetFilename(nsAString & aFilename) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
  NS_IMETHOD GetName(nsAString & aName) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetLineNumber(int32_t *aLineNumber) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
  NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
  NS_IMETHOD GetSourceLine(nsACString & aSourceLine) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceLine(aSourceLine); } \
  NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaller(aCaller); } \
  NS_IMETHOD GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSanitized(cx, aSanitized); } \
  NS_IMETHOD GetFormattedStack(nsAString & aFormattedStack) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormattedStack(aFormattedStack); } \
  NS_IMETHOD ToString(nsACString & _retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } \
  virtual bool CallerSubsumes(JSContext *aCx) MOZ_OVERRIDE; 

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

/* Header file */
class nsStackFrame : public nsIStackFrame
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISTACKFRAME

  nsStackFrame();

private:
  ~nsStackFrame();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsStackFrame, nsIStackFrame)

nsStackFrame::nsStackFrame()
{
  /* member initializers and constructor code */
}

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

/* readonly attribute uint32_t language; */
NS_IMETHODIMP nsStackFrame::GetLanguage(uint32_t *aLanguage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String languageName; */
NS_IMETHODIMP nsStackFrame::GetLanguageName(nsACString & aLanguageName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString filename; */
NS_IMETHODIMP nsStackFrame::GetFilename(nsAString & aFilename)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString name; */
NS_IMETHODIMP nsStackFrame::GetName(nsAString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute int32_t lineNumber; */
NS_IMETHODIMP nsStackFrame::GetLineNumber(int32_t *aLineNumber)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute int32_t columnNumber; */
NS_IMETHODIMP nsStackFrame::GetColumnNumber(int32_t *aColumnNumber)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String sourceLine; */
NS_IMETHODIMP nsStackFrame::GetSourceLine(nsACString & aSourceLine)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIStackFrame caller; */
NS_IMETHODIMP nsStackFrame::GetCaller(nsIStackFrame * *aCaller)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext,noscript] readonly attribute nsIStackFrame sanitized; */
NS_IMETHODIMP nsStackFrame::GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString formattedStack; */
NS_IMETHODIMP nsStackFrame::GetFormattedStack(nsAString & aFormattedStack)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String toString (); */
NS_IMETHODIMP nsStackFrame::ToString(nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript,nostdcall,notxpcom] boolean callerSubsumes (in JSContext aCx); */
bool nsStackFrame::CallerSubsumes(JSContext *aCx)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIException */
#define NS_IEXCEPTION_IID_STR "1caf1461-be1d-4b79-a552-5292b6bf3c35"

#define NS_IEXCEPTION_IID \
  {0x1caf1461, 0xbe1d, 0x4b79, \
    { 0xa5, 0x52, 0x52, 0x92, 0xb6, 0xbf, 0x3c, 0x35 }}

class NS_NO_VTABLE nsIException : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXCEPTION_IID)

  /* [binaryname(MessageMoz)] readonly attribute AUTF8String message; */
  NS_IMETHOD GetMessageMoz(nsACString & aMessage) = 0;

  /* readonly attribute nsresult result; */
  NS_IMETHOD GetResult(nsresult *aResult) = 0;

  /* readonly attribute AUTF8String name; */
  NS_IMETHOD GetName(nsACString & aName) = 0;

  /* readonly attribute AString filename; */
  NS_IMETHOD GetFilename(nsAString & aFilename) = 0;

  /* readonly attribute uint32_t lineNumber; */
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) = 0;

  /* readonly attribute uint32_t columnNumber; */
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) = 0;

  /* readonly attribute nsIStackFrame location; */
  NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) = 0;

  /* readonly attribute nsIException inner; */
  NS_IMETHOD GetInner(nsIException * *aInner) = 0;

  /* readonly attribute nsISupports data; */
  NS_IMETHOD GetData(nsISupports * *aData) = 0;

  /* AUTF8String toString (); */
  NS_IMETHOD ToString(nsACString & _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIException, NS_IEXCEPTION_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEXCEPTION \
  NS_IMETHOD GetMessageMoz(nsACString & aMessage) MOZ_OVERRIDE; \
  NS_IMETHOD GetResult(nsresult *aResult) MOZ_OVERRIDE; \
  NS_IMETHOD GetName(nsACString & aName) MOZ_OVERRIDE; \
  NS_IMETHOD GetFilename(nsAString & aFilename) MOZ_OVERRIDE; \
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) MOZ_OVERRIDE; \
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) MOZ_OVERRIDE; \
  NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) MOZ_OVERRIDE; \
  NS_IMETHOD GetInner(nsIException * *aInner) MOZ_OVERRIDE; \
  NS_IMETHOD GetData(nsISupports * *aData) MOZ_OVERRIDE; \
  NS_IMETHOD ToString(nsACString & _retval) MOZ_OVERRIDE; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEXCEPTION(_to) \
  NS_IMETHOD GetMessageMoz(nsACString & aMessage) MOZ_OVERRIDE { return _to GetMessageMoz(aMessage); } \
  NS_IMETHOD GetResult(nsresult *aResult) MOZ_OVERRIDE { return _to GetResult(aResult); } \
  NS_IMETHOD GetName(nsACString & aName) MOZ_OVERRIDE { return _to GetName(aName); } \
  NS_IMETHOD GetFilename(nsAString & aFilename) MOZ_OVERRIDE { return _to GetFilename(aFilename); } \
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) MOZ_OVERRIDE { return _to GetLineNumber(aLineNumber); } \
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) MOZ_OVERRIDE { return _to GetColumnNumber(aColumnNumber); } \
  NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) MOZ_OVERRIDE { return _to GetLocation(aLocation); } \
  NS_IMETHOD GetInner(nsIException * *aInner) MOZ_OVERRIDE { return _to GetInner(aInner); } \
  NS_IMETHOD GetData(nsISupports * *aData) MOZ_OVERRIDE { return _to GetData(aData); } \
  NS_IMETHOD ToString(nsACString & _retval) MOZ_OVERRIDE { return _to ToString(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEXCEPTION(_to) \
  NS_IMETHOD GetMessageMoz(nsACString & aMessage) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageMoz(aMessage); } \
  NS_IMETHOD GetResult(nsresult *aResult) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
  NS_IMETHOD GetName(nsACString & aName) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_IMETHOD GetFilename(nsAString & aFilename) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
  NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
  NS_IMETHOD GetInner(nsIException * *aInner) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInner(aInner); } \
  NS_IMETHOD GetData(nsISupports * *aData) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  NS_IMETHOD ToString(nsACString & _retval) MOZ_OVERRIDE { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } 

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

/* Header file */
class nsException : public nsIException
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIEXCEPTION

  nsException();

private:
  ~nsException();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsException, nsIException)

nsException::nsException()
{
  /* member initializers and constructor code */
}

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

/* [binaryname(MessageMoz)] readonly attribute AUTF8String message; */
NS_IMETHODIMP nsException::GetMessageMoz(nsACString & aMessage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsresult result; */
NS_IMETHODIMP nsException::GetResult(nsresult *aResult)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AUTF8String name; */
NS_IMETHODIMP nsException::GetName(nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString filename; */
NS_IMETHODIMP nsException::GetFilename(nsAString & aFilename)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute uint32_t lineNumber; */
NS_IMETHODIMP nsException::GetLineNumber(uint32_t *aLineNumber)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute uint32_t columnNumber; */
NS_IMETHODIMP nsException::GetColumnNumber(uint32_t *aColumnNumber)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIStackFrame location; */
NS_IMETHODIMP nsException::GetLocation(nsIStackFrame * *aLocation)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIException inner; */
NS_IMETHODIMP nsException::GetInner(nsIException * *aInner)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISupports data; */
NS_IMETHODIMP nsException::GetData(nsISupports * *aData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AUTF8String toString (); */
NS_IMETHODIMP nsException::ToString(nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIException_h__ */
