• 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::code
unsigned short code
Definition dom_exception.h:100
DOM::DOMException::isDOMExceptionCode
static bool isDOMExceptionCode(int exceptioncode)
Definition dom_node.cpp:554
DOM::DOMException::ExceptionCode
ExceptionCode
An integer indicating the type of error generated.
Definition dom_exception.h:72
DOM::DOMException::DATA_CLONE_ERR
@ DATA_CLONE_ERR
Definition dom_exception.h:97
DOM::DOMException::NETWORK_ERR
@ NETWORK_ERR
Definition dom_exception.h:91
DOM::DOMException::QUOTA_EXCEEDED_ERR
@ QUOTA_EXCEEDED_ERR
Definition dom_exception.h:94
DOM::DOMException::NAMESPACE_ERR
@ NAMESPACE_ERR
Definition dom_exception.h:86
DOM::DOMException::NOT_SUPPORTED_ERR
@ NOT_SUPPORTED_ERR
Definition dom_exception.h:81
DOM::DOMException::NO_DATA_ALLOWED_ERR
@ NO_DATA_ALLOWED_ERR
Definition dom_exception.h:78
DOM::DOMException::TYPE_MISMATCH_ERR
@ TYPE_MISMATCH_ERR
Definition dom_exception.h:89
DOM::DOMException::WRONG_DOCUMENT_ERR
@ WRONG_DOCUMENT_ERR
Definition dom_exception.h:76
DOM::DOMException::TIMEOUT_ERR
@ TIMEOUT_ERR
Definition dom_exception.h:95
DOM::DOMException::VALIDATION_ERR
@ VALIDATION_ERR
Definition dom_exception.h:88
DOM::DOMException::SECURITY_ERR
@ SECURITY_ERR
Definition dom_exception.h:90
DOM::DOMException::DOMSTRING_SIZE_ERR
@ DOMSTRING_SIZE_ERR
Definition dom_exception.h:74
DOM::DOMException::SYNTAX_ERR
@ SYNTAX_ERR
Definition dom_exception.h:84
DOM::DOMException::URL_MISMATCH_ERR
@ URL_MISMATCH_ERR
Definition dom_exception.h:93
DOM::DOMException::NOT_READABLE_ERR
@ NOT_READABLE_ERR
Definition dom_exception.h:96
DOM::DOMException::INVALID_CHARACTER_ERR
@ INVALID_CHARACTER_ERR
Definition dom_exception.h:77
DOM::DOMException::NO_MODIFICATION_ALLOWED_ERR
@ NO_MODIFICATION_ALLOWED_ERR
Definition dom_exception.h:79
DOM::DOMException::ABORT_ERR
@ ABORT_ERR
Definition dom_exception.h:92
DOM::DOMException::ENCODING_ERR
@ ENCODING_ERR
Definition dom_exception.h:98
DOM::DOMException::INVALID_ACCESS_ERR
@ INVALID_ACCESS_ERR
Definition dom_exception.h:87
DOM::DOMException::INDEX_SIZE_ERR
@ INDEX_SIZE_ERR
Definition dom_exception.h:73
DOM::DOMException::INUSE_ATTRIBUTE_ERR
@ INUSE_ATTRIBUTE_ERR
Definition dom_exception.h:82
DOM::DOMException::HIERARCHY_REQUEST_ERR
@ HIERARCHY_REQUEST_ERR
Definition dom_exception.h:75
DOM::DOMException::NOT_FOUND_ERR
@ NOT_FOUND_ERR
Definition dom_exception.h:80
DOM::DOMException::INVALID_STATE_ERR
@ INVALID_STATE_ERR
Definition dom_exception.h:83
DOM::DOMException::INVALID_MODIFICATION_ERR
@ INVALID_MODIFICATION_ERR
Definition dom_exception.h:85
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::DOMException::codeAsString
DOMString codeAsString() const
Returns the name of this error.
Definition dom_node.cpp:489
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-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 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