#include <dom2_events.h>

Public Types

enum  EventExceptionCode { UNSPECIFIED_EVENT_TYPE_ERR = 0, _EXCEPTION_OFFSET = 3000, _EXCEPTION_MAX = 3999 }

Public Member Functions

 EventException (unsigned short _code)
 EventException (const EventException &other)
DOMString codeAsString () const
EventExceptionoperator= (const EventException &other)

Static Public Member Functions

static DOMString codeAsString (int cssCode)
static bool isEventExceptionCode (int exceptioncode)

Public Attributes

unsigned short code

Detailed Description

Introduced in DOM Level 2:

Event operations may throw an EventException as specified in their method descriptions.

Definition at line 267 of file dom2_events.h.

Member Enumeration Documentation

An integer indicating the type of error generated.

UNSPECIFIED_EVENT_TYPE_ERR: If the Event's type was not specified by initializing the event before the method was called. Specification of the Event's type as null or an empty string will also trigger this exception.

Definition at line 284 of file dom2_events.h.

Member Function Documentation

DOMString EventException::codeAsString ( ) const

Returns the name of this error.

Definition at line 219 of file dom2_events.cpp.

DOMString EventException::codeAsString ( int  cssCode)

Returns the name of given error code.

Definition at line 229 of file dom2_events.cpp.

bool EventException::isEventExceptionCode ( int  exceptioncode)

- checks to see whether internal code is an event one

Definition at line 224 of file dom2_events.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 16 2021 22:48:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.