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