• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • dom
dom_exception.h
Go to the documentation of this file.
1/*
2 * This file is part of the DOM implementation for KDE.
3 *
4 * Copyright 1999 Lars Knoll (knoll@kde.org)
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 * This file includes excerpts from the Document Object Model (DOM)
22 * Level 1 Specification (Recommendation)
23 * http://www.w3.org/TR/REC-DOM-Level-1/
24 * Copyright © World Wide Web Consortium , (Massachusetts Institute of
25 * Technology , Institut National de Recherche en Informatique et en
26 * Automatique , Keio University ). All Rights Reserved.
27 *
28 */
29#ifndef _DOM_DOMException_h_
30#define _DOM_DOMException_h_
31
32#include <dom/dom_misc.h>
33#include <dom/dom_string.h>
34
35namespace DOM {
36
37
58class KHTML_EXPORT DOMException
59{
60public:
61 DOMException(unsigned short _code) { code = _code; }
62 DOMException(const DOMException &other) { code = other.code; }
63
64 DOMException & operator = (const DOMException &other)
65 { code = other.code; return *this; }
66
67 virtual ~DOMException() {}
72 enum ExceptionCode {
73 INDEX_SIZE_ERR = 1,
74 DOMSTRING_SIZE_ERR = 2,
75 HIERARCHY_REQUEST_ERR = 3,
76 WRONG_DOCUMENT_ERR = 4,
77 INVALID_CHARACTER_ERR = 5,
78 NO_DATA_ALLOWED_ERR = 6,
79 NO_MODIFICATION_ALLOWED_ERR = 7,
80 NOT_FOUND_ERR = 8,
81 NOT_SUPPORTED_ERR = 9,
82 INUSE_ATTRIBUTE_ERR = 10,
83 INVALID_STATE_ERR = 11,
84 SYNTAX_ERR = 12,
85 INVALID_MODIFICATION_ERR = 13,
86 NAMESPACE_ERR = 14,
87 INVALID_ACCESS_ERR = 15,
88 VALIDATION_ERR = 16,
89 TYPE_MISMATCH_ERR = 17,
90 SECURITY_ERR = 18,
91 NETWORK_ERR = 19,
92 ABORT_ERR = 20,
93 URL_MISMATCH_ERR = 21,
94 QUOTA_EXCEEDED_ERR = 22,
95 TIMEOUT_ERR = 23,
96 NOT_READABLE_ERR = 24,
97 DATA_CLONE_ERR = 25,
98 ENCODING_ERR = 26
99 };
100 unsigned short code;
101
103 DOMString codeAsString() const;
104
106 static DOMString codeAsString(int code);
107
109 static bool isDOMExceptionCode(int exceptioncode);
110
111};
112
113} //namespace
114#endif
DOM::DOMException
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impos...
Definition: dom_exception.h:59
DOM::DOMException::code
unsigned short code
Definition: dom_exception.h:100
DOM::DOMException::ExceptionCode
ExceptionCode
An integer indicating the type of error generated.
Definition: dom_exception.h:72
DOM::DOMException::DOMException
DOMException(const DOMException &other)
Definition: dom_exception.h:62
DOM::DOMException::DOMException
DOMException(unsigned short _code)
Definition: dom_exception.h:61
DOM::DOMException::~DOMException
virtual ~DOMException()
Definition: dom_exception.h:67
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
dom_misc.h
dom_string.h
DOM
This library provides a full-featured HTML parser and widget.
Definition: design.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal