KDE 4.6 PyKDE API Reference

- KDE's Python API

# EventException Class Reference

`from PyKDE4.khtml import *`

Namespace: DOM

## Detailed Description

Introduced in DOM Level 2:

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

## Enumerations

EventExceptionCode | { UNSPECIFIED_EVENT_TYPE_ERR, _EXCEPTION_OFFSET, _EXCEPTION_MAX }

## Attributes

int | code

## Methods

| __init__ (self, int _code)
| __init__ (self, DOM.EventException other)
DOM.DOMString | codeAsString (self)

## Static Methods

DOM.DOMString | codeAsString (int cssCode)
bool | isEventExceptionCode (int exceptioncode)

## Method Documentation

__init__ | ( | self, |
|  | int | _code
| ) |  |  |

__init__ | ( | self, |
|  | DOM.EventException | other
| ) |  |  |

DOM.DOMString codeAsString | ( |  | self ) |

## Static Method Documentation

DOM.DOMString codeAsString | ( | int | cssCode
| ) |  |  |

bool isEventExceptionCode | ( | int | exceptioncode
| ) |  |  |

Internal:
  - checks to see whether internal code is an event one

## Attribute Documentation

int code

## 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 = 0 |
  _EXCEPTION_OFFSET = 3000 |
  _EXCEPTION_MAX = 3999 |