PageRenderTime 255ms CodeModel.GetById 70ms app.highlight 5ms RepoModel.GetById 76ms app.codeStats 0ms

/gecko_api/include/nsIDOMDOMException.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 138 lines | 65 code | 43 blank | 30 comment | 0 complexity | aad4f851592b43d1566fb2e84fe14aef MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/core/nsIDOMDOMException.idl
  3 */
  4
  5#ifndef __gen_nsIDOMDOMException_h__
  6#define __gen_nsIDOMDOMException_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDOMDOMException */
 19#define NS_IDOMDOMEXCEPTION_IID_STR "a6cf910a-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMDOMEXCEPTION_IID \
 22  {0xa6cf910a, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25/**
 26 * In general, DOM methods return specific error values in ordinary
 27 * processing situations, such as out-of-bound errors.
 28 * However, DOM operations can raise exceptions in "exceptional"
 29 * circumstances, i.e., when an operation is impossible to perform
 30 * (either for logical reasons, because data is lost, or because the
 31 * implementation has become unstable)
 32 *
 33 * For more information on this interface please see
 34 * http://www.w3.org/TR/DOM-Level-3-Core/
 35 *
 36 * @status FROZEN
 37 */
 38class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDOMException : public nsISupports {
 39 public: 
 40
 41  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOMEXCEPTION_IID)
 42
 43  enum { INDEX_SIZE_ERR = 1U };
 44
 45  enum { DOMSTRING_SIZE_ERR = 2U };
 46
 47  enum { HIERARCHY_REQUEST_ERR = 3U };
 48
 49  enum { WRONG_DOCUMENT_ERR = 4U };
 50
 51  enum { INVALID_CHARACTER_ERR = 5U };
 52
 53  enum { NO_DATA_ALLOWED_ERR = 6U };
 54
 55  enum { NO_MODIFICATION_ALLOWED_ERR = 7U };
 56
 57  enum { NOT_FOUND_ERR = 8U };
 58
 59  enum { NOT_SUPPORTED_ERR = 9U };
 60
 61  enum { INUSE_ATTRIBUTE_ERR = 10U };
 62
 63  enum { INVALID_STATE_ERR = 11U };
 64
 65  enum { SYNTAX_ERR = 12U };
 66
 67  enum { INVALID_MODIFICATION_ERR = 13U };
 68
 69  enum { NAMESPACE_ERR = 14U };
 70
 71  enum { INVALID_ACCESS_ERR = 15U };
 72
 73  enum { VALIDATION_ERR = 16U };
 74
 75  enum { TYPE_MISMATCH_ERR = 17U };
 76
 77  /* readonly attribute unsigned long code; */
 78  NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint32 *aCode) = 0;
 79
 80};
 81
 82  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDOMException, NS_IDOMDOMEXCEPTION_IID)
 83
 84/* Use this macro when declaring classes that implement this interface. */
 85#define NS_DECL_NSIDOMDOMEXCEPTION \
 86  NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint32 *aCode); 
 87
 88/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 89#define NS_FORWARD_NSIDOMDOMEXCEPTION(_to) \
 90  NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint32 *aCode) { return _to GetCode(aCode); } 
 91
 92/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 93#define NS_FORWARD_SAFE_NSIDOMDOMEXCEPTION(_to) \
 94  NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint32 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } 
 95
 96#if 0
 97/* Use the code below as a template for the implementation class for this interface. */
 98
 99/* Header file */
100class nsDOMDOMException : public nsIDOMDOMException
101{
102public:
103  NS_DECL_ISUPPORTS
104  NS_DECL_NSIDOMDOMEXCEPTION
105
106  nsDOMDOMException();
107
108private:
109  ~nsDOMDOMException();
110
111protected:
112  /* additional members */
113};
114
115/* Implementation file */
116NS_IMPL_ISUPPORTS1(nsDOMDOMException, nsIDOMDOMException)
117
118nsDOMDOMException::nsDOMDOMException()
119{
120  /* member initializers and constructor code */
121}
122
123nsDOMDOMException::~nsDOMDOMException()
124{
125  /* destructor code */
126}
127
128/* readonly attribute unsigned long code; */
129NS_IMETHODIMP nsDOMDOMException::GetCode(PRUint32 *aCode)
130{
131    return NS_ERROR_NOT_IMPLEMENTED;
132}
133
134/* End of implementation class template. */
135#endif
136
137
138#endif /* __gen_nsIDOMDOMException_h__ */