PageRenderTime 15ms CodeModel.GetById 7ms RepoModel.GetById 0ms 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. #ifndef __gen_nsIDOMDOMException_h__
  5. #define __gen_nsIDOMDOMException_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMDOMException */
  14. #define NS_IDOMDOMEXCEPTION_IID_STR "a6cf910a-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMDOMEXCEPTION_IID \
  16. {0xa6cf910a, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * In general, DOM methods return specific error values in ordinary
  20. * processing situations, such as out-of-bound errors.
  21. * However, DOM operations can raise exceptions in "exceptional"
  22. * circumstances, i.e., when an operation is impossible to perform
  23. * (either for logical reasons, because data is lost, or because the
  24. * implementation has become unstable)
  25. *
  26. * For more information on this interface please see
  27. * http://www.w3.org/TR/DOM-Level-3-Core/
  28. *
  29. * @status FROZEN
  30. */
  31. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDOMException : public nsISupports {
  32. public:
  33. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOMEXCEPTION_IID)
  34. enum { INDEX_SIZE_ERR = 1U };
  35. enum { DOMSTRING_SIZE_ERR = 2U };
  36. enum { HIERARCHY_REQUEST_ERR = 3U };
  37. enum { WRONG_DOCUMENT_ERR = 4U };
  38. enum { INVALID_CHARACTER_ERR = 5U };
  39. enum { NO_DATA_ALLOWED_ERR = 6U };
  40. enum { NO_MODIFICATION_ALLOWED_ERR = 7U };
  41. enum { NOT_FOUND_ERR = 8U };
  42. enum { NOT_SUPPORTED_ERR = 9U };
  43. enum { INUSE_ATTRIBUTE_ERR = 10U };
  44. enum { INVALID_STATE_ERR = 11U };
  45. enum { SYNTAX_ERR = 12U };
  46. enum { INVALID_MODIFICATION_ERR = 13U };
  47. enum { NAMESPACE_ERR = 14U };
  48. enum { INVALID_ACCESS_ERR = 15U };
  49. enum { VALIDATION_ERR = 16U };
  50. enum { TYPE_MISMATCH_ERR = 17U };
  51. /* readonly attribute unsigned long code; */
  52. NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint32 *aCode) = 0;
  53. };
  54. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDOMException, NS_IDOMDOMEXCEPTION_IID)
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSIDOMDOMEXCEPTION \
  57. NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint32 *aCode);
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  59. #define NS_FORWARD_NSIDOMDOMEXCEPTION(_to) \
  60. NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint32 *aCode) { return _to GetCode(aCode); }
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSIDOMDOMEXCEPTION(_to) \
  63. NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint32 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); }
  64. #if 0
  65. /* Use the code below as a template for the implementation class for this interface. */
  66. /* Header file */
  67. class nsDOMDOMException : public nsIDOMDOMException
  68. {
  69. public:
  70. NS_DECL_ISUPPORTS
  71. NS_DECL_NSIDOMDOMEXCEPTION
  72. nsDOMDOMException();
  73. private:
  74. ~nsDOMDOMException();
  75. protected:
  76. /* additional members */
  77. };
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsDOMDOMException, nsIDOMDOMException)
  80. nsDOMDOMException::nsDOMDOMException()
  81. {
  82. /* member initializers and constructor code */
  83. }
  84. nsDOMDOMException::~nsDOMDOMException()
  85. {
  86. /* destructor code */
  87. }
  88. /* readonly attribute unsigned long code; */
  89. NS_IMETHODIMP nsDOMDOMException::GetCode(PRUint32 *aCode)
  90. {
  91. return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93. /* End of implementation class template. */
  94. #endif
  95. #endif /* __gen_nsIDOMDOMException_h__ */