nsIDOMDOMException.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/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 nsIDOMDOMException : public nsISupports {
  32. public:
  33. NS_DEFINE_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_IMETHOD GetCode(PRUint32 *aCode) = 0;
  53. };
  54. /* Use this macro when declaring classes that implement this interface. */
  55. #define NS_DECL_NSIDOMDOMEXCEPTION \
  56. NS_IMETHOD GetCode(PRUint32 *aCode);
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIDOMDOMEXCEPTION(_to) \
  59. NS_IMETHOD GetCode(PRUint32 *aCode) { return _to GetCode(aCode); }
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  61. #define NS_FORWARD_SAFE_NSIDOMDOMEXCEPTION(_to) \
  62. NS_IMETHOD GetCode(PRUint32 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); }
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65. /* Header file */
  66. class nsDOMDOMException : public nsIDOMDOMException
  67. {
  68. public:
  69. NS_DECL_ISUPPORTS
  70. NS_DECL_NSIDOMDOMEXCEPTION
  71. nsDOMDOMException();
  72. private:
  73. ~nsDOMDOMException();
  74. protected:
  75. /* additional members */
  76. };
  77. /* Implementation file */
  78. NS_IMPL_ISUPPORTS1(nsDOMDOMException, nsIDOMDOMException)
  79. nsDOMDOMException::nsDOMDOMException()
  80. {
  81. /* member initializers and constructor code */
  82. }
  83. nsDOMDOMException::~nsDOMDOMException()
  84. {
  85. /* destructor code */
  86. }
  87. /* readonly attribute unsigned long code; */
  88. NS_IMETHODIMP nsDOMDOMException::GetCode(PRUint32 *aCode)
  89. {
  90. return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92. /* End of implementation class template. */
  93. #endif
  94. #endif /* __gen_nsIDOMDOMException_h__ */