dom/interfaces/core/nsIDOMDOMException.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/core/nsIDOMDOMException.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "domstubs.idl"
    1.10 +
    1.11 +/**
    1.12 + * In general, DOM methods return specific error values in ordinary
    1.13 + * processing situations, such as out-of-bound errors.
    1.14 + * However, DOM operations can raise exceptions in "exceptional"
    1.15 + * circumstances, i.e., when an operation is impossible to perform
    1.16 + * (either for logical reasons, because data is lost, or because the
    1.17 + * implementation has become unstable)
    1.18 + *
    1.19 + * For more information on this interface please see
    1.20 + * http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#domexception
    1.21 + */
    1.22 +
    1.23 +[scriptable, uuid(5bd766d3-57a9-4833-995d-dbe21da29595)]
    1.24 +interface nsIDOMDOMException : nsISupports
    1.25 +{
    1.26 +  const unsigned short      INDEX_SIZE_ERR                 = 1;
    1.27 +  const unsigned short      DOMSTRING_SIZE_ERR             = 2; // historical
    1.28 +  const unsigned short      HIERARCHY_REQUEST_ERR          = 3;
    1.29 +  const unsigned short      WRONG_DOCUMENT_ERR             = 4;
    1.30 +  const unsigned short      INVALID_CHARACTER_ERR          = 5;
    1.31 +  const unsigned short      NO_DATA_ALLOWED_ERR            = 6; // historical
    1.32 +  const unsigned short      NO_MODIFICATION_ALLOWED_ERR    = 7;
    1.33 +  const unsigned short      NOT_FOUND_ERR                  = 8;
    1.34 +  const unsigned short      NOT_SUPPORTED_ERR              = 9;
    1.35 +  const unsigned short      INUSE_ATTRIBUTE_ERR            = 10; // historical
    1.36 +  const unsigned short      INVALID_STATE_ERR              = 11;
    1.37 +  const unsigned short      SYNTAX_ERR                     = 12;
    1.38 +  const unsigned short      INVALID_MODIFICATION_ERR       = 13;
    1.39 +  const unsigned short      NAMESPACE_ERR                  = 14;
    1.40 +  const unsigned short      INVALID_ACCESS_ERR             = 15;
    1.41 +  const unsigned short      VALIDATION_ERR                 = 16; // historical
    1.42 +  const unsigned short      TYPE_MISMATCH_ERR              = 17;
    1.43 +  const unsigned short      SECURITY_ERR                   = 18;
    1.44 +  const unsigned short      NETWORK_ERR                    = 19;
    1.45 +  const unsigned short      ABORT_ERR                      = 20;
    1.46 +  const unsigned short      URL_MISMATCH_ERR               = 21;
    1.47 +  const unsigned short      QUOTA_EXCEEDED_ERR             = 22;
    1.48 +  const unsigned short      TIMEOUT_ERR                    = 23;
    1.49 +  const unsigned short      INVALID_NODE_TYPE_ERR          = 24;
    1.50 +  const unsigned short      DATA_CLONE_ERR                 = 25;
    1.51 +  const unsigned short      INVALID_POINTER_ERR            = 26;
    1.52 +
    1.53 +  readonly attribute unsigned short   code;
    1.54 +};
    1.55 +

mercurial