Back to index

python3.2  3.2.2
Public Member Functions
xml.sax.handler.ErrorHandler Class Reference

List of all members.

Public Member Functions

def error
def fatalError
def warning

Detailed Description

Basic interface for SAX error handlers.

If you create an object that implements this interface, then
register the object with your XMLReader, the parser will call the
methods in your object to report all warnings and errors. There
are three levels of errors available: warnings, (possibly)
recoverable errors, and unrecoverable errors. All methods take a
SAXParseException as the only parameter.

Definition at line 22 of file

Member Function Documentation

def xml.sax.handler.ErrorHandler.error (   self,

Definition at line 32 of file

00033     def error(self, exception):
00034         "Handle a recoverable error."
00035         raise exception

Here is the caller graph for this function:

def xml.sax.handler.ErrorHandler.fatalError (   self,

Definition at line 36 of file

00037     def fatalError(self, exception):
00038         "Handle a non-recoverable error."
00039         raise exception

def xml.sax.handler.ErrorHandler.warning (   self,

Definition at line 40 of file

00041     def warning(self, exception):
00042         "Handle a warning."
00043         print(exception)
00046 # ===== CONTENTHANDLER =====

The documentation for this class was generated from the following file: