Back to index

python3.2  3.2.2
Public Member Functions
xml.sax._exceptions.SAXReaderNotAvailable Class Reference
Inheritance diagram for xml.sax._exceptions.SAXReaderNotAvailable:
Inheritance graph
[legend]
Collaboration diagram for xml.sax._exceptions.SAXReaderNotAvailable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getMessage
def getException
def __str__
def __getitem__

Detailed Description

Exception class for a missing driver.

An XMLReader module (driver) should raise this exception when it
is first imported, e.g. when a support module cannot be imported.
It also may be raised during parsing, e.g. if executing an external
program is not permitted.

Definition at line 125 of file _exceptions.py.


Member Function Documentation

def xml.sax._exceptions.SAXException.__getitem__ (   self,
  ix 
) [inherited]
Avoids weird error messages if someone does exception[ix] by
mistake, since Exception has __getitem__ defined.

Definition at line 38 of file _exceptions.py.

00038 
00039     def __getitem__(self, ix):
00040         """Avoids weird error messages if someone does exception[ix] by
00041         mistake, since Exception has __getitem__ defined."""
00042         raise AttributeError("__getitem__")
00043 
00044 
00045 # ===== SAXPARSEEXCEPTION =====

def xml.sax._exceptions.SAXException.__str__ (   self) [inherited]

Reimplemented in xml.sax._exceptions.SAXParseException.

Definition at line 34 of file _exceptions.py.

00034 
00035     def __str__(self):
00036         "Create a string representation of the exception."
00037         return self._msg

Definition at line 30 of file _exceptions.py.

00030 
00031     def getException(self):
00032         "Return the embedded exception, or None if there was none."
00033         return self._exception

def xml.sax._exceptions.SAXException.getMessage (   self) [inherited]

Definition at line 26 of file _exceptions.py.

00026 
00027     def getMessage(self):
00028         "Return a message for this exception."
00029         return self._msg


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