Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  nsIException.idl

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


/*
 * Interfaces for representing cross-language exceptions and stack traces.
 */

#include "nsISupports.idl"

[ptr] native JSContext(JSContext);
native StackFrameRef(already_AddRefed<nsIStackFrame>);

[scriptable, builtinclass, uuid(28bfb2a2-5ea6-4738-918b-049dc4d51f0b)]
interface nsIStackFrame : nsISupports
{
    [implicit_jscontext, binaryname(FilenameXPCOM)]
    readonly attribute AUTF8String             filename;
    [implicit_jscontext, binaryname(NameXPCOM)]
    readonly attribute AString                 name;
    // Unique identifier of the script source for the frame, or zero.
    [implicit_jscontext, binaryname(SourceIdXPCOM)]
    readonly attribute int32_t                 sourceId;
    // Valid line numbers begin at '1'. '0' indicates unknown.
    [implicit_jscontext, binaryname(LineNumberXPCOM)]
    readonly attribute int32_t                 lineNumber;
    [implicit_jscontext, binaryname(ColumnNumberXPCOM)]
    readonly attribute int32_t                 columnNumber;
    [implicit_jscontext, binaryname(AsyncCauseXPCOM)]
    readonly attribute AString                 asyncCause;
    [implicit_jscontext, binaryname(AsyncCallerXPCOM)]
    readonly attribute nsIStackFrame           asyncCaller;
    [implicit_jscontext, binaryname(CallerXPCOM)]
    readonly attribute nsIStackFrame           caller;

    // Returns a formatted stack string that looks like the sort of
    // string that would be returned by .stack on JS Error objects.
    // Only works on JS-language stack frames.
    [implicit_jscontext, binaryname(FormattedStackXPCOM)]
    readonly attribute AString                 formattedStack;

    // Returns the underlying SavedFrame object for native JavaScript stacks,
    // or null if this is not a native JavaScript stack frame.
    readonly attribute jsval                   nativeSavedFrame;

    [implicit_jscontext, binaryname(ToStringXPCOM)]
    AUTF8String toString();

    // Infallible things to be called from C++.
    [notxpcom, nostdcall]
    void getFilename(in JSContext aCx, out AUTF8String aFilename);
    [notxpcom, nostdcall]
    void getName(in JSContext aCx, out AString aName);
    [notxpcom, nostdcall]
    int32_t getSourceId(in JSContext aCx);
    [notxpcom, nostdcall]
    int32_t getLineNumber(in JSContext aCx);
    [notxpcom, nostdcall]
    int32_t getColumnNumber(in JSContext aCx);
    [notxpcom, nostdcall]
    void getAsyncCause(in JSContext aCx, out AString aAsyncCause);
    [notxpcom, nostdcall]
    StackFrameRef getAsyncCaller(in JSContext aCx);
    [notxpcom, nostdcall]
    StackFrameRef getCaller(in JSContext aCx);
    [notxpcom, nostdcall]
    void getFormattedStack(in JSContext aCx, out AString aFormattedStack);
    [notxpcom, nostdcall, binaryname(ToString)]
    void toStringInfallible(in JSContext aCx, out AUTF8String aString);
};

// This interface only exists because of all the JS consumers doing
// "instanceof Ci.nsIException".  We should switch them to something else and
// get rid of it; bug 1435856 tracks that.  C++ code should NOT use this; use
// mozilla::dom::Exception instead.
[scriptable, builtinclass, uuid(4371b5bf-6845-487f-8d9d-3f1e4a9badd2)]
interface nsIException : nsISupports
{
};

Messung V0.5 in Prozent
C=83 H=97 G=90

¤ Dauer der Verarbeitung: 0.27 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002