KHTML
#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) | |
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
◆ 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.
Enumerator | |
---|---|
UNSPECIFIED_EVENT_TYPE_ERR | |
_EXCEPTION_OFFSET | |
_EXCEPTION_MAX |
Definition at line 285 of file dom2_events.h.
Constructor & Destructor Documentation
◆ EventException() [1/2]
EventException::EventException | ( | unsigned short | _code | ) |
Definition at line 180 of file dom2_events.cpp.
◆ EventException() [2/2]
EventException::EventException | ( | const EventException & | other | ) |
Definition at line 185 of file dom2_events.cpp.
◆ ~EventException()
|
inlinevirtual |
Definition at line 274 of file dom2_events.h.
Member Function Documentation
◆ codeAsString() [1/2]
DOMString EventException::codeAsString | ( | ) | const |
Returns the name of this error.
Definition at line 198 of file dom2_events.cpp.
◆ codeAsString() [2/2]
|
static |
Returns the name of given error code.
Definition at line 208 of file dom2_events.cpp.
◆ isEventExceptionCode()
|
static |
- checks to see whether internal code is an event one
Definition at line 203 of file dom2_events.cpp.
◆ operator=()
EventException & EventException::operator= | ( | const EventException & | other | ) |
Definition at line 190 of file dom2_events.cpp.
Member Data Documentation
◆ code
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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.