Teks sumber — English
Terjemahan — Bahasa Indonesia
An additional section describes the exceptions defined for working with the DOM in Python.
Exceptions
Pengecualian
The Python DOM interface provides the constants, but also expands the set of exceptions so that a specific exception exists for each of the exception codes defined by the DOM. The implementations must raise the appropriate specific exception, each of which carries the appropriate value for the :attr:`code` attribute.
Base exception class used for all specific DOM exceptions. This exception class cannot be directly instantiated.
The exception codes defined in the DOM recommendation map to the exceptions described above according to this table: