1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- 2 * 3 * This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7#include "nsISupports.idl" 8#include "nsIException.idl" 9 10[scriptable, builtinclass, uuid(875e6645-e762-4da6-9ec8-bf19ab0050df)] 11interface nsIXPCException : nsIException 12{ 13 // inherits methods from nsIException 14 15 void initialize(in AUTF8String aMessage, 16 in nsresult aResult, 17 in AUTF8String aName, 18 in nsIStackFrame aLocation, 19 in nsISupports aData); 20}; 21 22/* this goes into the C++ header verbatim. */ 23%{ C++ 24/********************************************************/ 25// {5632BF70-51EC-11d3-9896-006008962422} 26#define NS_XPCEXCEPTION_CID \ 27{ 0x5632bf70, 0x51ec, 0x11d3, \ 28 { 0x98, 0x96, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 29%} 30 31