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

KHTML

  • DOM
  • DOMException
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
DOM::DOMException Class Reference

#include <dom_exception.h>

Public Types

enum  ExceptionCode {
  INDEX_SIZE_ERR = 1, DOMSTRING_SIZE_ERR = 2, HIERARCHY_REQUEST_ERR = 3, WRONG_DOCUMENT_ERR = 4,
  INVALID_CHARACTER_ERR = 5, NO_DATA_ALLOWED_ERR = 6, NO_MODIFICATION_ALLOWED_ERR = 7, NOT_FOUND_ERR = 8,
  NOT_SUPPORTED_ERR = 9, INUSE_ATTRIBUTE_ERR = 10, INVALID_STATE_ERR = 11, SYNTAX_ERR = 12,
  INVALID_MODIFICATION_ERR = 13, NAMESPACE_ERR = 14, INVALID_ACCESS_ERR = 15, VALIDATION_ERR = 16,
  TYPE_MISMATCH_ERR = 17, SECURITY_ERR = 18, NETWORK_ERR = 19, ABORT_ERR = 20,
  URL_MISMATCH_ERR = 21, QUOTA_EXCEEDED_ERR = 22, TIMEOUT_ERR = 23, NOT_READABLE_ERR = 24,
  DATA_CLONE_ERR = 25, ENCODING_ERR = 26
}
 

Public Member Functions

 DOMException (unsigned short _code)
 
 DOMException (const DOMException &other)
 
virtual ~DOMException ()
 
DOMString codeAsString () const
 
DOMException & operator= (const DOMException &other)
 

Static Public Member Functions

static DOMString codeAsString (int code)
 
static bool isDOMExceptionCode (int exceptioncode)
 

Public Attributes

unsigned short code
 

Detailed Description

DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable).

In general, DOM methods return specific error values in ordinary processing situation, such as out-of-bound errors when using NodeList .

Implementations may raise other exceptions under other circumstances. For example, implementations may raise an implementation-dependent exception if a null argument is passed.

Some languages and object systems do not support the concept of exceptions. For such systems, error conditions may be indicated using native error reporting mechanisms. For some bindings, for example, methods may return error codes similar to those listed in the corresponding method descriptions.

Definition at line 58 of file dom_exception.h.

Member Enumeration Documentation

enum DOM::DOMException::ExceptionCode

An integer indicating the type of error generated.

Enumerator
INDEX_SIZE_ERR 
DOMSTRING_SIZE_ERR 
HIERARCHY_REQUEST_ERR 
WRONG_DOCUMENT_ERR 
INVALID_CHARACTER_ERR 
NO_DATA_ALLOWED_ERR 
NO_MODIFICATION_ALLOWED_ERR 
NOT_FOUND_ERR 
NOT_SUPPORTED_ERR 
INUSE_ATTRIBUTE_ERR 
INVALID_STATE_ERR 
SYNTAX_ERR 
INVALID_MODIFICATION_ERR 
NAMESPACE_ERR 
INVALID_ACCESS_ERR 
VALIDATION_ERR 
TYPE_MISMATCH_ERR 
SECURITY_ERR 
NETWORK_ERR 
Since
4.5.2
ABORT_ERR 
Since
4.5.2
URL_MISMATCH_ERR 
Since
4.5.2
QUOTA_EXCEEDED_ERR 
Since
4.5.2
TIMEOUT_ERR 
Since
4.5.2
NOT_READABLE_ERR 
Since
4.5.2
DATA_CLONE_ERR 
Since
4.5.2
ENCODING_ERR 
Since
4.5.2

Definition at line 72 of file dom_exception.h.

Constructor & Destructor Documentation

DOM::DOMException::DOMException ( unsigned short  _code)
inline

Definition at line 61 of file dom_exception.h.

DOM::DOMException::DOMException ( const DOMException &  other)
inline

Definition at line 62 of file dom_exception.h.

virtual DOM::DOMException::~DOMException ( )
inlinevirtual

Definition at line 67 of file dom_exception.h.

Member Function Documentation

DOMString DOMException::codeAsString ( ) const

Returns the name of this error.

Definition at line 489 of file dom_node.cpp.

DOMString DOMException::codeAsString ( int  code)
static

Returns the name of given error code.

Definition at line 494 of file dom_node.cpp.

bool DOMException::isDOMExceptionCode ( int  exceptioncode)
static

- checks to see whether internal code is a DOMException one

Definition at line 554 of file dom_node.cpp.

DOMException& DOM::DOMException::operator= ( const DOMException &  other)
inline

Definition at line 64 of file dom_exception.h.

Member Data Documentation

unsigned short DOM::DOMException::code

Definition at line 100 of file dom_exception.h.


The documentation for this class was generated from the following files:
  • dom_exception.h
  • dom_node.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:23 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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