OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_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 */ |
| 38 class NS_NO_VTABLE nsIDOMDOMException : public nsISupports { |
| 39 public: |
| 40 |
| 41 NS_DEFINE_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_IMETHOD GetCode(PRUint32 *aCode) = 0; |
| 79 |
| 80 }; |
| 81 |
| 82 /* Use this macro when declaring classes that implement this interface. */ |
| 83 #define NS_DECL_NSIDOMDOMEXCEPTION \ |
| 84 NS_IMETHOD GetCode(PRUint32 *aCode); |
| 85 |
| 86 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 87 #define NS_FORWARD_NSIDOMDOMEXCEPTION(_to) \ |
| 88 NS_IMETHOD GetCode(PRUint32 *aCode) { return _to GetCode(aCode); } |
| 89 |
| 90 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 91 #define NS_FORWARD_SAFE_NSIDOMDOMEXCEPTION(_to) \ |
| 92 NS_IMETHOD GetCode(PRUint32 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetCode(aCode); } |
| 93 |
| 94 #if 0 |
| 95 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 96 |
| 97 /* Header file */ |
| 98 class nsDOMDOMException : public nsIDOMDOMException |
| 99 { |
| 100 public: |
| 101 NS_DECL_ISUPPORTS |
| 102 NS_DECL_NSIDOMDOMEXCEPTION |
| 103 |
| 104 nsDOMDOMException(); |
| 105 |
| 106 private: |
| 107 ~nsDOMDOMException(); |
| 108 |
| 109 protected: |
| 110 /* additional members */ |
| 111 }; |
| 112 |
| 113 /* Implementation file */ |
| 114 NS_IMPL_ISUPPORTS1(nsDOMDOMException, nsIDOMDOMException) |
| 115 |
| 116 nsDOMDOMException::nsDOMDOMException() |
| 117 { |
| 118 /* member initializers and constructor code */ |
| 119 } |
| 120 |
| 121 nsDOMDOMException::~nsDOMDOMException() |
| 122 { |
| 123 /* destructor code */ |
| 124 } |
| 125 |
| 126 /* readonly attribute unsigned long code; */ |
| 127 NS_IMETHODIMP nsDOMDOMException::GetCode(PRUint32 *aCode) |
| 128 { |
| 129 return NS_ERROR_NOT_IMPLEMENTED; |
| 130 } |
| 131 |
| 132 /* End of implementation class template. */ |
| 133 #endif |
| 134 |
| 135 |
| 136 #endif /* __gen_nsIDOMDOMException_h__ */ |
OLD | NEW |