/usr/include/thunderbird/nsIException.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIException.idl
*/
#ifndef __gen_nsIException_h__
#define __gen_nsIException_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIStackFrame */
#define NS_ISTACKFRAME_IID_STR "4ed5cd87-401a-425a-8d8d-c28fbc1e88b2"
#define NS_ISTACKFRAME_IID \
{0x4ed5cd87, 0x401a, 0x425a, \
{ 0x8d, 0x8d, 0xc2, 0x8f, 0xbc, 0x1e, 0x88, 0xb2 }}
class NS_NO_VTABLE nsIStackFrame : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTACKFRAME_IID)
/* readonly attribute uint32_t language; */
NS_IMETHOD GetLanguage(uint32_t *aLanguage) = 0;
/* readonly attribute AUTF8String languageName; */
NS_IMETHOD GetLanguageName(nsACString & aLanguageName) = 0;
/* readonly attribute AString filename; */
NS_IMETHOD GetFilename(nsAString & aFilename) = 0;
/* readonly attribute AString name; */
NS_IMETHOD GetName(nsAString & aName) = 0;
/* readonly attribute int32_t lineNumber; */
NS_IMETHOD GetLineNumber(int32_t *aLineNumber) = 0;
/* readonly attribute int32_t columnNumber; */
NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) = 0;
/* readonly attribute AUTF8String sourceLine; */
NS_IMETHOD GetSourceLine(nsACString & aSourceLine) = 0;
/* readonly attribute nsIStackFrame caller; */
NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) = 0;
/* [implicit_jscontext,noscript] readonly attribute nsIStackFrame sanitized; */
NS_IMETHOD GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized) = 0;
/* readonly attribute AString formattedStack; */
NS_IMETHOD GetFormattedStack(nsAString & aFormattedStack) = 0;
/* AUTF8String toString (); */
NS_IMETHOD ToString(nsACString & _retval) = 0;
/* [noscript,nostdcall,notxpcom] boolean callerSubsumes (in JSContext aCx); */
virtual bool CallerSubsumes(JSContext *aCx) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIStackFrame, NS_ISTACKFRAME_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISTACKFRAME \
NS_IMETHOD GetLanguage(uint32_t *aLanguage) override; \
NS_IMETHOD GetLanguageName(nsACString & aLanguageName) override; \
NS_IMETHOD GetFilename(nsAString & aFilename) override; \
NS_IMETHOD GetName(nsAString & aName) override; \
NS_IMETHOD GetLineNumber(int32_t *aLineNumber) override; \
NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) override; \
NS_IMETHOD GetSourceLine(nsACString & aSourceLine) override; \
NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) override; \
NS_IMETHOD GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized) override; \
NS_IMETHOD GetFormattedStack(nsAString & aFormattedStack) override; \
NS_IMETHOD ToString(nsACString & _retval) override; \
virtual bool CallerSubsumes(JSContext *aCx) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISTACKFRAME(_to) \
NS_IMETHOD GetLanguage(uint32_t *aLanguage) override { return _to GetLanguage(aLanguage); } \
NS_IMETHOD GetLanguageName(nsACString & aLanguageName) override { return _to GetLanguageName(aLanguageName); } \
NS_IMETHOD GetFilename(nsAString & aFilename) override { return _to GetFilename(aFilename); } \
NS_IMETHOD GetName(nsAString & aName) override { return _to GetName(aName); } \
NS_IMETHOD GetLineNumber(int32_t *aLineNumber) override { return _to GetLineNumber(aLineNumber); } \
NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) override { return _to GetColumnNumber(aColumnNumber); } \
NS_IMETHOD GetSourceLine(nsACString & aSourceLine) override { return _to GetSourceLine(aSourceLine); } \
NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) override { return _to GetCaller(aCaller); } \
NS_IMETHOD GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized) override { return _to GetSanitized(cx, aSanitized); } \
NS_IMETHOD GetFormattedStack(nsAString & aFormattedStack) override { return _to GetFormattedStack(aFormattedStack); } \
NS_IMETHOD ToString(nsACString & _retval) override { return _to ToString(_retval); } \
virtual bool CallerSubsumes(JSContext *aCx) override { return _to CallerSubsumes(aCx); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISTACKFRAME(_to) \
NS_IMETHOD GetLanguage(uint32_t *aLanguage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguage(aLanguage); } \
NS_IMETHOD GetLanguageName(nsACString & aLanguageName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguageName(aLanguageName); } \
NS_IMETHOD GetFilename(nsAString & aFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
NS_IMETHOD GetName(nsAString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD GetLineNumber(int32_t *aLineNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
NS_IMETHOD GetSourceLine(nsACString & aSourceLine) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceLine(aSourceLine); } \
NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaller(aCaller); } \
NS_IMETHOD GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSanitized(cx, aSanitized); } \
NS_IMETHOD GetFormattedStack(nsAString & aFormattedStack) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormattedStack(aFormattedStack); } \
NS_IMETHOD ToString(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } \
virtual bool CallerSubsumes(JSContext *aCx) override;
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsStackFrame : public nsIStackFrame
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISTACKFRAME
nsStackFrame();
private:
~nsStackFrame();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsStackFrame, nsIStackFrame)
nsStackFrame::nsStackFrame()
{
/* member initializers and constructor code */
}
nsStackFrame::~nsStackFrame()
{
/* destructor code */
}
/* readonly attribute uint32_t language; */
NS_IMETHODIMP nsStackFrame::GetLanguage(uint32_t *aLanguage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String languageName; */
NS_IMETHODIMP nsStackFrame::GetLanguageName(nsACString & aLanguageName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString filename; */
NS_IMETHODIMP nsStackFrame::GetFilename(nsAString & aFilename)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString name; */
NS_IMETHODIMP nsStackFrame::GetName(nsAString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute int32_t lineNumber; */
NS_IMETHODIMP nsStackFrame::GetLineNumber(int32_t *aLineNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute int32_t columnNumber; */
NS_IMETHODIMP nsStackFrame::GetColumnNumber(int32_t *aColumnNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String sourceLine; */
NS_IMETHODIMP nsStackFrame::GetSourceLine(nsACString & aSourceLine)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIStackFrame caller; */
NS_IMETHODIMP nsStackFrame::GetCaller(nsIStackFrame * *aCaller)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext,noscript] readonly attribute nsIStackFrame sanitized; */
NS_IMETHODIMP nsStackFrame::GetSanitized(JSContext* cx, nsIStackFrame * *aSanitized)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString formattedStack; */
NS_IMETHODIMP nsStackFrame::GetFormattedStack(nsAString & aFormattedStack)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String toString (); */
NS_IMETHODIMP nsStackFrame::ToString(nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript,nostdcall,notxpcom] boolean callerSubsumes (in JSContext aCx); */
bool nsStackFrame::CallerSubsumes(JSContext *aCx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIException */
#define NS_IEXCEPTION_IID_STR "1caf1461-be1d-4b79-a552-5292b6bf3c35"
#define NS_IEXCEPTION_IID \
{0x1caf1461, 0xbe1d, 0x4b79, \
{ 0xa5, 0x52, 0x52, 0x92, 0xb6, 0xbf, 0x3c, 0x35 }}
class NS_NO_VTABLE nsIException : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXCEPTION_IID)
/* [binaryname(MessageMoz)] readonly attribute AUTF8String message; */
NS_IMETHOD GetMessageMoz(nsACString & aMessage) = 0;
/* readonly attribute nsresult result; */
NS_IMETHOD GetResult(nsresult *aResult) = 0;
/* readonly attribute AUTF8String name; */
NS_IMETHOD GetName(nsACString & aName) = 0;
/* readonly attribute AString filename; */
NS_IMETHOD GetFilename(nsAString & aFilename) = 0;
/* readonly attribute uint32_t lineNumber; */
NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) = 0;
/* readonly attribute uint32_t columnNumber; */
NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) = 0;
/* readonly attribute nsIStackFrame location; */
NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) = 0;
/* readonly attribute nsIException inner; */
NS_IMETHOD GetInner(nsIException * *aInner) = 0;
/* readonly attribute nsISupports data; */
NS_IMETHOD GetData(nsISupports * *aData) = 0;
/* AUTF8String toString (); */
NS_IMETHOD ToString(nsACString & _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIException, NS_IEXCEPTION_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEXCEPTION \
NS_IMETHOD GetMessageMoz(nsACString & aMessage) override; \
NS_IMETHOD GetResult(nsresult *aResult) override; \
NS_IMETHOD GetName(nsACString & aName) override; \
NS_IMETHOD GetFilename(nsAString & aFilename) override; \
NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override; \
NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override; \
NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) override; \
NS_IMETHOD GetInner(nsIException * *aInner) override; \
NS_IMETHOD GetData(nsISupports * *aData) override; \
NS_IMETHOD ToString(nsACString & _retval) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEXCEPTION(_to) \
NS_IMETHOD GetMessageMoz(nsACString & aMessage) override { return _to GetMessageMoz(aMessage); } \
NS_IMETHOD GetResult(nsresult *aResult) override { return _to GetResult(aResult); } \
NS_IMETHOD GetName(nsACString & aName) override { return _to GetName(aName); } \
NS_IMETHOD GetFilename(nsAString & aFilename) override { return _to GetFilename(aFilename); } \
NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override { return _to GetLineNumber(aLineNumber); } \
NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override { return _to GetColumnNumber(aColumnNumber); } \
NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) override { return _to GetLocation(aLocation); } \
NS_IMETHOD GetInner(nsIException * *aInner) override { return _to GetInner(aInner); } \
NS_IMETHOD GetData(nsISupports * *aData) override { return _to GetData(aData); } \
NS_IMETHOD ToString(nsACString & _retval) override { return _to ToString(_retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEXCEPTION(_to) \
NS_IMETHOD GetMessageMoz(nsACString & aMessage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageMoz(aMessage); } \
NS_IMETHOD GetResult(nsresult *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
NS_IMETHOD GetName(nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_IMETHOD GetFilename(nsAString & aFilename) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
NS_IMETHOD GetLineNumber(uint32_t *aLineNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
NS_IMETHOD GetColumnNumber(uint32_t *aColumnNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
NS_IMETHOD GetInner(nsIException * *aInner) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInner(aInner); } \
NS_IMETHOD GetData(nsISupports * *aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
NS_IMETHOD ToString(nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsException : public nsIException
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIEXCEPTION
nsException();
private:
~nsException();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsException, nsIException)
nsException::nsException()
{
/* member initializers and constructor code */
}
nsException::~nsException()
{
/* destructor code */
}
/* [binaryname(MessageMoz)] readonly attribute AUTF8String message; */
NS_IMETHODIMP nsException::GetMessageMoz(nsACString & aMessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsresult result; */
NS_IMETHODIMP nsException::GetResult(nsresult *aResult)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AUTF8String name; */
NS_IMETHODIMP nsException::GetName(nsACString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute AString filename; */
NS_IMETHODIMP nsException::GetFilename(nsAString & aFilename)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t lineNumber; */
NS_IMETHODIMP nsException::GetLineNumber(uint32_t *aLineNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute uint32_t columnNumber; */
NS_IMETHODIMP nsException::GetColumnNumber(uint32_t *aColumnNumber)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIStackFrame location; */
NS_IMETHODIMP nsException::GetLocation(nsIStackFrame * *aLocation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIException inner; */
NS_IMETHODIMP nsException::GetInner(nsIException * *aInner)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISupports data; */
NS_IMETHODIMP nsException::GetData(nsISupports * *aData)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* AUTF8String toString (); */
NS_IMETHODIMP nsException::ToString(nsACString & _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIException_h__ */
|