author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Fri, 26 Feb 2016 15:39:19 -0800
changeset 325591 9267d7d90e5741f47d0b68ce9227fbacf8d4aa2e
parent 309443 932fcd51eacef36cc2b568d719f830f3f7b5b2c7
child 327687 8bb1cce4804df9375940783c502aba7855c7dee2
permissions -rw-r--r--
Bumping gaia.json for 2 gaia revision(s) a=gaia-bump ======== https://hg.mozilla.org/integration/gaia-central/rev/60965134996d Author: Sean Lee <weilonge@gmail.com> Desc: Merge pull request #34063 from weilonge/seanlee/DataSync/master/Bug1244169 Bug 1244169 - Implement Tabs sync data adapter. r=ferjm,michielbdejong ======== https://hg.mozilla.org/integration/gaia-central/rev/644529e8fb66 Author: Sean Lee <selee@mozilla.com> Desc: Bug 1244169 - Implement Tabs sync data adapter. r=ferjm,michielbdejong

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* 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"

[scriptable, uuid(28bfb2a2-5ea6-4738-918b-049dc4d51f0b)]
interface nsIStackFrame : nsISupports
    // see nsIProgrammingLanguage for list of language consts
    readonly attribute uint32_t                language;
    readonly attribute AUTF8String             languageName;
    readonly attribute AString                 filename;
    readonly attribute AString                 name;
    // Valid line numbers begin at '1'. '0' indicates unknown.
    readonly attribute int32_t                 lineNumber;
    readonly attribute int32_t                 columnNumber;
    readonly attribute AUTF8String             sourceLine;
    readonly attribute AString                 asyncCause;
    readonly attribute nsIStackFrame           asyncCaller;
    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.
    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;

    AUTF8String toString();

[scriptable, uuid(4371b5bf-6845-487f-8d9d-3f1e4a9badd2)]
interface nsIException : nsISupports
    // A custom message set by the thrower.
    [binaryname(MessageMoz)] readonly attribute AUTF8String message;
    // The nsresult associated with this exception.
    readonly attribute nsresult                result;
    // The name of the error code (ie, a string repr of |result|)
    readonly attribute AUTF8String             name;

    // Filename location.  This is the location that caused the
    // error, which may or may not be a source file location.
    // For example, standard language errors would generally have
    // the same location as their top stack entry.  File
    // parsers may put the location of the file they were parsing,
    // etc.

    // null indicates "no data"
    readonly attribute AString                 filename;
    // Valid line numbers begin at '1'. '0' indicates unknown.
    readonly attribute uint32_t                lineNumber;
    // Valid column numbers begin at 0.
    // We don't have an unambiguous indicator for unknown.
    readonly attribute uint32_t                columnNumber;

    // A stack trace, if available.
    readonly attribute nsIStackFrame           location;

    // Arbitary data for the implementation.
    readonly attribute nsISupports             data;

    // A generic formatter - make it suitable to print, etc.
    AUTF8String toString();