dom/interfaces/core/nsIDOMDOMException.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "domstubs.idl"
michael@0 7
michael@0 8 /**
michael@0 9 * In general, DOM methods return specific error values in ordinary
michael@0 10 * processing situations, such as out-of-bound errors.
michael@0 11 * However, DOM operations can raise exceptions in "exceptional"
michael@0 12 * circumstances, i.e., when an operation is impossible to perform
michael@0 13 * (either for logical reasons, because data is lost, or because the
michael@0 14 * implementation has become unstable)
michael@0 15 *
michael@0 16 * For more information on this interface please see
michael@0 17 * http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#domexception
michael@0 18 */
michael@0 19
michael@0 20 [scriptable, uuid(5bd766d3-57a9-4833-995d-dbe21da29595)]
michael@0 21 interface nsIDOMDOMException : nsISupports
michael@0 22 {
michael@0 23 const unsigned short INDEX_SIZE_ERR = 1;
michael@0 24 const unsigned short DOMSTRING_SIZE_ERR = 2; // historical
michael@0 25 const unsigned short HIERARCHY_REQUEST_ERR = 3;
michael@0 26 const unsigned short WRONG_DOCUMENT_ERR = 4;
michael@0 27 const unsigned short INVALID_CHARACTER_ERR = 5;
michael@0 28 const unsigned short NO_DATA_ALLOWED_ERR = 6; // historical
michael@0 29 const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
michael@0 30 const unsigned short NOT_FOUND_ERR = 8;
michael@0 31 const unsigned short NOT_SUPPORTED_ERR = 9;
michael@0 32 const unsigned short INUSE_ATTRIBUTE_ERR = 10; // historical
michael@0 33 const unsigned short INVALID_STATE_ERR = 11;
michael@0 34 const unsigned short SYNTAX_ERR = 12;
michael@0 35 const unsigned short INVALID_MODIFICATION_ERR = 13;
michael@0 36 const unsigned short NAMESPACE_ERR = 14;
michael@0 37 const unsigned short INVALID_ACCESS_ERR = 15;
michael@0 38 const unsigned short VALIDATION_ERR = 16; // historical
michael@0 39 const unsigned short TYPE_MISMATCH_ERR = 17;
michael@0 40 const unsigned short SECURITY_ERR = 18;
michael@0 41 const unsigned short NETWORK_ERR = 19;
michael@0 42 const unsigned short ABORT_ERR = 20;
michael@0 43 const unsigned short URL_MISMATCH_ERR = 21;
michael@0 44 const unsigned short QUOTA_EXCEEDED_ERR = 22;
michael@0 45 const unsigned short TIMEOUT_ERR = 23;
michael@0 46 const unsigned short INVALID_NODE_TYPE_ERR = 24;
michael@0 47 const unsigned short DATA_CLONE_ERR = 25;
michael@0 48 const unsigned short INVALID_POINTER_ERR = 26;
michael@0 49
michael@0 50 readonly attribute unsigned short code;
michael@0 51 };
michael@0 52

mercurial