/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */
const nsCString& GetMessageMoz() const { return mMessage; }
nsresult GetResult() const { return mResult; } // DOMException wants different ToString behavior, so allow it to override. virtualvoid ToString(JSContext* aCx, nsACString& aReturn);
// Cruft used by XPConnect for exceptions originating in JS implemented // components. bool StealJSVal(JS::Value* aVp); void StowJSVal(JS::Value& aVp);
// WebIDL API virtual JSObject* WrapObject(JSContext* cx,
JS::Handle<JSObject*> aGivenProto) override;
virtualvoid GetErrorMessage(nsAString& aRetVal) { // Since GetName is non non-virtual and deals with different // member variables in Exception vs. DOMException, have a virtual // method to ensure the right error message creation.
nsAutoString name;
GetName(name);
CreateErrorMessage(name, aRetVal);
}
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 ist noch experimentell.