Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsIScriptError.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /src/mozilla-central/dom/bindings/nsIScriptError.idl
3
 */
4
5
#ifndef __gen_nsIScriptError_h__
6
#define __gen_nsIScriptError_h__
7
8
9
#ifndef __gen_nsISupports_h__
10
#include "nsISupports.h"
11
#endif
12
13
#ifndef __gen_nsIArray_h__
14
#include "nsIArray.h"
15
#endif
16
17
#ifndef __gen_nsIConsoleMessage_h__
18
#include "nsIConsoleMessage.h"
19
#endif
20
21
#include "js/Value.h"
22
23
#include "js/GCAnnotations.h"
24
25
/* For IDL files that don't want to include root IDL files. */
26
#ifndef NS_NO_VTABLE
27
#define NS_NO_VTABLE
28
#endif
29
class nsIURI; /* forward declaration */
30
31
#include "nsString.h" // for nsDependentCString
32
33
/* starting interface:    nsIScriptErrorNote */
34
#define NS_ISCRIPTERRORNOTE_IID_STR "e8933fc9-c302-4e12-a55b-4f88611d9c6c"
35
36
#define NS_ISCRIPTERRORNOTE_IID \
37
  {0xe8933fc9, 0xc302, 0x4e12, \
38
    { 0xa5, 0x5b, 0x4f, 0x88, 0x61, 0x1d, 0x9c, 0x6c }}
39
40
class NS_NO_VTABLE nsIScriptErrorNote : public nsISupports {
41
 public:
42
43
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTERRORNOTE_IID)
44
45
  /* readonly attribute AString errorMessage; */
46
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetErrorMessage(nsAString& aErrorMessage) = 0;
47
48
  /* readonly attribute AString sourceName; */
49
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSourceName(nsAString& aSourceName) = 0;
50
51
  /* readonly attribute uint32_t lineNumber; */
52
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) = 0;
53
54
  /* readonly attribute uint32_t columnNumber; */
55
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) = 0;
56
57
  /* AUTF8String toString (); */
58
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ToString(nsACString& _retval) = 0;
59
60
};
61
62
  NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptErrorNote, NS_ISCRIPTERRORNOTE_IID)
63
64
/* Use this macro when declaring classes that implement this interface. */
65
#define NS_DECL_NSISCRIPTERRORNOTE \
66
  NS_IMETHOD GetErrorMessage(nsAString& aErrorMessage) override; \
67
  NS_IMETHOD GetSourceName(nsAString& aSourceName) override; \
68
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override; \
69
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override; \
70
  NS_IMETHOD ToString(nsACString& _retval) override; 
71
72
/* Use this macro when declaring the members of this interface when the
73
   class doesn't implement the interface. This is useful for forwarding. */
74
#define NS_DECL_NON_VIRTUAL_NSISCRIPTERRORNOTE \
75
  nsresult GetErrorMessage(nsAString& aErrorMessage); \
76
  nsresult GetSourceName(nsAString& aSourceName); \
77
  nsresult GetLineNumber(uint32_t *aLineNumber); \
78
  nsresult GetColumnNumber(uint32_t *aColumnNumber); \
79
  nsresult ToString(nsACString& _retval); 
80
81
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
82
#define NS_FORWARD_NSISCRIPTERRORNOTE(_to) \
83
  NS_IMETHOD GetErrorMessage(nsAString& aErrorMessage) override { return _to GetErrorMessage(aErrorMessage); } \
84
  NS_IMETHOD GetSourceName(nsAString& aSourceName) override { return _to GetSourceName(aSourceName); } \
85
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override { return _to GetLineNumber(aLineNumber); } \
86
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override { return _to GetColumnNumber(aColumnNumber); } \
87
  NS_IMETHOD ToString(nsACString& _retval) override { return _to ToString(_retval); } 
88
89
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
90
#define NS_FORWARD_SAFE_NSISCRIPTERRORNOTE(_to) \
91
  NS_IMETHOD GetErrorMessage(nsAString& aErrorMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessage(aErrorMessage); } \
92
  NS_IMETHOD GetSourceName(nsAString& aSourceName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceName(aSourceName); } \
93
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
94
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
95
  NS_IMETHOD ToString(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } 
96
97
98
/* starting interface:    nsIScriptError */
99
#define NS_ISCRIPTERROR_IID_STR "63eb4d3e-7d99-4150-b4f3-11314f9d82a9"
100
101
#define NS_ISCRIPTERROR_IID \
102
  {0x63eb4d3e, 0x7d99, 0x4150, \
103
    { 0xb4, 0xf3, 0x11, 0x31, 0x4f, 0x9d, 0x82, 0xa9 }}
104
105
class nsIScriptError : public nsIConsoleMessage {
106
 public:
107
108
  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTERROR_IID)
109
110
  enum {
111
    errorFlag = 0U,
112
    warningFlag = 1U,
113
    exceptionFlag = 2U,
114
    strictFlag = 4U,
115
    infoFlag = 8U
116
  };
117
118
  /* readonly attribute AString errorMessage; */
119
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetErrorMessage(nsAString& aErrorMessage) = 0;
120
121
  /* readonly attribute AString sourceName; */
122
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSourceName(nsAString& aSourceName) = 0;
123
124
  /* readonly attribute AString sourceLine; */
125
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSourceLine(nsAString& aSourceLine) = 0;
126
127
  /* readonly attribute uint32_t lineNumber; */
128
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) = 0;
129
130
  /* readonly attribute uint32_t columnNumber; */
131
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) = 0;
132
133
  /* readonly attribute uint32_t flags; */
134
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFlags(uint32_t *aFlags) = 0;
135
136
  /* readonly attribute string category; */
137
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCategory(char * *aCategory) = 0;
138
139
  /* readonly attribute unsigned long long outerWindowID; */
140
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) = 0;
141
142
  /* readonly attribute unsigned long long innerWindowID; */
143
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) = 0;
144
145
  /* readonly attribute boolean isFromPrivateWindow; */
146
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow) = 0;
147
148
  /* attribute jsval stack; */
149
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStack(JS::MutableHandleValue aStack) = 0;
150
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetStack(JS::HandleValue aStack) = 0;
151
152
  /* [noscript] readonly attribute jsval stackGlobal; */
153
  NS_IMETHOD GetStackGlobal(JS::MutableHandleValue aStackGlobal) = 0;
154
155
  /* attribute AString errorMessageName; */
156
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetErrorMessageName(nsAString& aErrorMessageName) = 0;
157
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetErrorMessageName(const nsAString& aErrorMessageName) = 0;
158
159
  /* readonly attribute nsIArray notes; */
160
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetNotes(nsIArray **aNotes) = 0;
161
162
  /* attribute unsigned long long timeWarpTarget; */
163
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTimeWarpTarget(uint64_t *aTimeWarpTarget) = 0;
164
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetTimeWarpTarget(uint64_t aTimeWarpTarget) = 0;
165
166
  /* void init (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in string category, [optional] in bool fromPrivateWindow); */
167
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category, bool fromPrivateWindow) = 0;
168
169
  /* void initWithWindowID (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID); */
170
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitWithWindowID(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) = 0;
171
172
  /* void initWithSanitizedSource (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID); */
173
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitWithSanitizedSource(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) = 0;
174
175
  /* void initWithSourceURI (in AString message, in nsIURI sourceURI, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID); */
176
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitWithSourceURI(const nsAString& message, nsIURI *sourceURI, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) = 0;
177
178
     // These overloads allow passing a literal string for category.
179
    template<uint32_t N>
180
    nsresult InitWithWindowID(const nsAString& message,
181
                              const nsAString& sourceName,
182
                              const nsAString& sourceLine,
183
                              uint32_t lineNumber,
184
                              uint32_t columnNumber,
185
                              uint32_t flags,
186
                              const char (&c)[N],
187
                              uint64_t aInnerWindowID)
188
0
    {
189
0
        nsDependentCString category(c, N - 1);
190
0
        return InitWithWindowID(message, sourceName, sourceLine, lineNumber,
191
0
                                columnNumber, flags, category, aInnerWindowID);
192
0
    }
Unexecuted instantiation: nsresult nsIScriptError::InitWithWindowID<10u>(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [10u], unsigned long)
Unexecuted instantiation: nsresult nsIScriptError::InitWithWindowID<21u>(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [21u], unsigned long)
Unexecuted instantiation: nsresult nsIScriptError::InitWithWindowID<14u>(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [14u], unsigned long)
Unexecuted instantiation: nsresult nsIScriptError::InitWithWindowID<6u>(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [6u], unsigned long)
Unexecuted instantiation: nsresult nsIScriptError::InitWithWindowID<13u>(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [13u], unsigned long)
Unexecuted instantiation: nsresult nsIScriptError::InitWithWindowID<11u>(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [11u], unsigned long)
193
    template<uint32_t N>
194
    nsresult InitWithSanitizedSource(const nsAString& message,
195
                                     const nsAString& sourceName,
196
                                     const nsAString& sourceLine,
197
                                     uint32_t lineNumber,
198
                                     uint32_t columnNumber,
199
                                     uint32_t flags,
200
                                     const char (&c)[N],
201
                                     uint64_t aInnerWindowID)
202
0
    {
203
0
        nsDependentCString category(c, N - 1);
204
0
        return InitWithSanitizedSource(message, sourceName, sourceLine,
205
0
                                       lineNumber, columnNumber, flags,
206
0
                                       category, aInnerWindowID);
207
0
    }
Unexecuted instantiation: nsresult nsIScriptError::InitWithSanitizedSource<16u>(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [16u], unsigned long)
Unexecuted instantiation: nsresult nsIScriptError::InitWithSanitizedSource<11u>(nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [11u], unsigned long)
208
    template<uint32_t N>
209
    nsresult InitWithSourceURI(const nsAString& message,
210
                               nsIURI* sourceURI,
211
                               const nsAString& sourceLine,
212
                               uint32_t lineNumber,
213
                               uint32_t columnNumber,
214
                               uint32_t flags,
215
                               const char (&c)[N],
216
                               uint64_t aInnerWindowID)
217
0
    {
218
0
        nsDependentCString category(c, N - 1);
219
0
        return InitWithSourceURI(message, sourceURI, sourceLine,
220
0
                                 lineNumber, columnNumber, flags,
221
0
                                 category, aInnerWindowID);
222
0
    }
Unexecuted instantiation: nsresult nsIScriptError::InitWithSourceURI<4u>(nsTSubstring<char16_t> const&, nsIURI*, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [4u], unsigned long)
Unexecuted instantiation: nsresult nsIScriptError::InitWithSourceURI<11u>(nsTSubstring<char16_t> const&, nsIURI*, nsTSubstring<char16_t> const&, unsigned int, unsigned int, unsigned int, char const (&) [11u], unsigned long)
223
};
224
225
  NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptError, NS_ISCRIPTERROR_IID)
226
227
/* Use this macro when declaring classes that implement this interface. */
228
#define NS_DECL_NSISCRIPTERROR \
229
  NS_IMETHOD GetErrorMessage(nsAString& aErrorMessage) override; \
230
  NS_IMETHOD GetSourceName(nsAString& aSourceName) override; \
231
  NS_IMETHOD GetSourceLine(nsAString& aSourceLine) override; \
232
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override; \
233
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override; \
234
  NS_IMETHOD GetFlags(uint32_t *aFlags) override; \
235
  NS_IMETHOD GetCategory(char * *aCategory) override; \
236
  NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override; \
237
  NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override; \
238
  NS_IMETHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow) override; \
239
  NS_IMETHOD GetStack(JS::MutableHandleValue aStack) override; \
240
  NS_IMETHOD SetStack(JS::HandleValue aStack) override; \
241
  NS_IMETHOD GetStackGlobal(JS::MutableHandleValue aStackGlobal) override; \
242
  NS_IMETHOD GetErrorMessageName(nsAString& aErrorMessageName) override; \
243
  NS_IMETHOD SetErrorMessageName(const nsAString& aErrorMessageName) override; \
244
  NS_IMETHOD GetNotes(nsIArray **aNotes) override; \
245
  NS_IMETHOD GetTimeWarpTarget(uint64_t *aTimeWarpTarget) override; \
246
  NS_IMETHOD SetTimeWarpTarget(uint64_t aTimeWarpTarget) override; \
247
  NS_IMETHOD Init(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category, bool fromPrivateWindow) override; \
248
  NS_IMETHOD InitWithWindowID(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override; \
249
  NS_IMETHOD InitWithSanitizedSource(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override; \
250
  NS_IMETHOD InitWithSourceURI(const nsAString& message, nsIURI *sourceURI, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override; \
251
252
/* Use this macro when declaring the members of this interface when the
253
   class doesn't implement the interface. This is useful for forwarding. */
254
#define NS_DECL_NON_VIRTUAL_NSISCRIPTERROR \
255
  nsresult GetErrorMessage(nsAString& aErrorMessage); \
256
  nsresult GetSourceName(nsAString& aSourceName); \
257
  nsresult GetSourceLine(nsAString& aSourceLine); \
258
  nsresult GetLineNumber(uint32_t *aLineNumber); \
259
  nsresult GetColumnNumber(uint32_t *aColumnNumber); \
260
  nsresult GetFlags(uint32_t *aFlags); \
261
  nsresult GetCategory(char * *aCategory); \
262
  nsresult GetOuterWindowID(uint64_t *aOuterWindowID); \
263
  nsresult GetInnerWindowID(uint64_t *aInnerWindowID); \
264
  nsresult GetIsFromPrivateWindow(bool *aIsFromPrivateWindow); \
265
  nsresult GetStack(JS::MutableHandleValue aStack); \
266
  nsresult SetStack(JS::HandleValue aStack); \
267
  nsresult GetStackGlobal(JS::MutableHandleValue aStackGlobal); \
268
  nsresult GetErrorMessageName(nsAString& aErrorMessageName); \
269
  nsresult SetErrorMessageName(const nsAString& aErrorMessageName); \
270
  nsresult GetNotes(nsIArray **aNotes); \
271
  nsresult GetTimeWarpTarget(uint64_t *aTimeWarpTarget); \
272
  nsresult SetTimeWarpTarget(uint64_t aTimeWarpTarget); \
273
  nsresult Init(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category, bool fromPrivateWindow); \
274
  nsresult InitWithWindowID(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID); \
275
  nsresult InitWithSanitizedSource(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID); \
276
  nsresult InitWithSourceURI(const nsAString& message, nsIURI *sourceURI, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID); \
277
278
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
279
#define NS_FORWARD_NSISCRIPTERROR(_to) \
280
  NS_IMETHOD GetErrorMessage(nsAString& aErrorMessage) override { return _to GetErrorMessage(aErrorMessage); } \
281
  NS_IMETHOD GetSourceName(nsAString& aSourceName) override { return _to GetSourceName(aSourceName); } \
282
  NS_IMETHOD GetSourceLine(nsAString& aSourceLine) override { return _to GetSourceLine(aSourceLine); } \
283
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override { return _to GetLineNumber(aLineNumber); } \
284
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override { return _to GetColumnNumber(aColumnNumber); } \
285
  NS_IMETHOD GetFlags(uint32_t *aFlags) override { return _to GetFlags(aFlags); } \
286
  NS_IMETHOD GetCategory(char * *aCategory) override { return _to GetCategory(aCategory); } \
287
  NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override { return _to GetOuterWindowID(aOuterWindowID); } \
288
  NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override { return _to GetInnerWindowID(aInnerWindowID); } \
289
  NS_IMETHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow) override { return _to GetIsFromPrivateWindow(aIsFromPrivateWindow); } \
290
  NS_IMETHOD GetStack(JS::MutableHandleValue aStack) override { return _to GetStack(aStack); } \
291
  NS_IMETHOD SetStack(JS::HandleValue aStack) override { return _to SetStack(aStack); } \
292
  NS_IMETHOD GetStackGlobal(JS::MutableHandleValue aStackGlobal) override { return _to GetStackGlobal(aStackGlobal); } \
293
  NS_IMETHOD GetErrorMessageName(nsAString& aErrorMessageName) override { return _to GetErrorMessageName(aErrorMessageName); } \
294
  NS_IMETHOD SetErrorMessageName(const nsAString& aErrorMessageName) override { return _to SetErrorMessageName(aErrorMessageName); } \
295
  NS_IMETHOD GetNotes(nsIArray **aNotes) override { return _to GetNotes(aNotes); } \
296
  NS_IMETHOD GetTimeWarpTarget(uint64_t *aTimeWarpTarget) override { return _to GetTimeWarpTarget(aTimeWarpTarget); } \
297
  NS_IMETHOD SetTimeWarpTarget(uint64_t aTimeWarpTarget) override { return _to SetTimeWarpTarget(aTimeWarpTarget); } \
298
  NS_IMETHOD Init(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category, bool fromPrivateWindow) override { return _to Init(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, fromPrivateWindow); } \
299
  NS_IMETHOD InitWithWindowID(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override { return _to InitWithWindowID(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); } \
300
  NS_IMETHOD InitWithSanitizedSource(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override { return _to InitWithSanitizedSource(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); } \
301
  NS_IMETHOD InitWithSourceURI(const nsAString& message, nsIURI *sourceURI, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override { return _to InitWithSourceURI(message, sourceURI, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); } \
302
303
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
304
#define NS_FORWARD_SAFE_NSISCRIPTERROR(_to) \
305
  NS_IMETHOD GetErrorMessage(nsAString& aErrorMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessage(aErrorMessage); } \
306
  NS_IMETHOD GetSourceName(nsAString& aSourceName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceName(aSourceName); } \
307
  NS_IMETHOD GetSourceLine(nsAString& aSourceLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceLine(aSourceLine); } \
308
  NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
309
  NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
310
  NS_IMETHOD GetFlags(uint32_t *aFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
311
  NS_IMETHOD GetCategory(char * *aCategory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCategory(aCategory); } \
312
  NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterWindowID(aOuterWindowID); } \
313
  NS_IMETHOD GetInnerWindowID(uint64_t *aInnerWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerWindowID(aInnerWindowID); } \
314
  NS_IMETHOD GetIsFromPrivateWindow(bool *aIsFromPrivateWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFromPrivateWindow(aIsFromPrivateWindow); } \
315
  NS_IMETHOD GetStack(JS::MutableHandleValue aStack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStack(aStack); } \
316
  NS_IMETHOD SetStack(JS::HandleValue aStack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStack(aStack); } \
317
  NS_IMETHOD GetStackGlobal(JS::MutableHandleValue aStackGlobal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStackGlobal(aStackGlobal); } \
318
  NS_IMETHOD GetErrorMessageName(nsAString& aErrorMessageName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorMessageName(aErrorMessageName); } \
319
  NS_IMETHOD SetErrorMessageName(const nsAString& aErrorMessageName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetErrorMessageName(aErrorMessageName); } \
320
  NS_IMETHOD GetNotes(nsIArray **aNotes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotes(aNotes); } \
321
  NS_IMETHOD GetTimeWarpTarget(uint64_t *aTimeWarpTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeWarpTarget(aTimeWarpTarget); } \
322
  NS_IMETHOD SetTimeWarpTarget(uint64_t aTimeWarpTarget) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimeWarpTarget(aTimeWarpTarget); } \
323
  NS_IMETHOD Init(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const char * category, bool fromPrivateWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, fromPrivateWindow); } \
324
  NS_IMETHOD InitWithWindowID(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithWindowID(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); } \
325
  NS_IMETHOD InitWithSanitizedSource(const nsAString& message, const nsAString& sourceName, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithSanitizedSource(message, sourceName, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); } \
326
  NS_IMETHOD InitWithSourceURI(const nsAString& message, nsIURI *sourceURI, const nsAString& sourceLine, uint32_t lineNumber, uint32_t columnNumber, uint32_t flags, const nsACString& category, uint64_t innerWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWithSourceURI(message, sourceURI, sourceLine, lineNumber, columnNumber, flags, category, innerWindowID); } \
327
328
#define NS_SCRIPTERROR_CID \
329
{ 0x1950539a, 0x90f0, 0x4d22, { 0xb5, 0xaf, 0x71, 0x32, 0x9c, 0x68, 0xfa, 0x35 }}
330
0
#define NS_SCRIPTERROR_CONTRACTID "@mozilla.org/scripterror;1"
331
332
#endif /* __gen_nsIScriptError_h__ */