Search for usage in LXR

#include <dom2_events.h>

Public Types

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

Public Member Functions

 EventException (const EventException &other)
 EventException (unsigned short _code)
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

◆ EventExceptionCode

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

◆ codeAsString() [1/2]

DOMString EventException::codeAsString ( ) const

Returns the name of this error.

Definition at line 219 of file dom2_events.cpp.

◆ codeAsString() [2/2]

DOMString EventException::codeAsString ( int  cssCode)

Returns the name of given error code.

Definition at line 229 of file dom2_events.cpp.

◆ isEventExceptionCode()

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-2022 The KDE developers.
Generated on Tue Dec 6 2022 03:57:06 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.