js/xpconnect/idl/xpcexception.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/idl/xpcexception.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 + /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +#include "nsIException.idl"
    1.12 +
    1.13 +[scriptable, uuid(dd250248-2586-4ec1-a68f-8d14ef452517)]
    1.14 +interface nsIXPCException : nsIException
    1.15 +{
    1.16 +    // inherits methods from nsIException
    1.17 +
    1.18 +    void initialize(in AUTF8String      aMessage,
    1.19 +                    in nsresult         aResult,
    1.20 +                    in AUTF8String      aName,
    1.21 +                    in nsIStackFrame    aLocation,
    1.22 +                    in nsISupports      aData,
    1.23 +                    in nsIException     aInner);
    1.24 +};
    1.25 +
    1.26 +/* this goes into the C++ header verbatim. */
    1.27 +%{ C++
    1.28 +/********************************************************/
    1.29 +// {5632BF70-51EC-11d3-9896-006008962422}
    1.30 +#define NS_XPCEXCEPTION_CID  \
    1.31 +{ 0x5632bf70, 0x51ec, 0x11d3, \
    1.32 +    { 0x98, 0x96, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
    1.33 +%}
    1.34 +

mercurial