KHTML
#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) | |
virtual | ~EventException () |
DOMString | codeAsString () const |
EventException & | operator= (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 268 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.
Enumerator | |
---|---|
UNSPECIFIED_EVENT_TYPE_ERR | |
_EXCEPTION_OFFSET | |
_EXCEPTION_MAX |
Definition at line 285 of file dom2_events.h.
Constructor & Destructor Documentation
EventException::EventException | ( | unsigned short | _code | ) |
Definition at line 180 of file dom2_events.cpp.
EventException::EventException | ( | const EventException & | other | ) |
Definition at line 185 of file dom2_events.cpp.
|
inlinevirtual |
Definition at line 274 of file dom2_events.h.
Member Function Documentation
DOMString EventException::codeAsString | ( | ) | const |
Returns the name of this error.
Definition at line 198 of file dom2_events.cpp.
|
static |
Returns the name of given error code.
Definition at line 208 of file dom2_events.cpp.
|
static |
- checks to see whether internal code is an event one
Definition at line 203 of file dom2_events.cpp.
EventException & EventException::operator= | ( | const EventException & | other | ) |
Definition at line 190 of file dom2_events.cpp.
Member Data Documentation
unsigned short DOM::EventException::code |
Definition at line 291 of file dom2_events.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.