Package xml :: Package sax :: Module _exceptions :: Class SAXException
[show private | hide private]
[frames | no frames]

Type SAXException

   object --+        
            |        
BaseException --+    
                |    
        Exception --+
                    |
                   SAXException

Known Subclasses:
ParserException

Encapsulate an XML error or warning. This class can contain basic error or warning information from either the XML parser or the application: you can subclass it to provide additional functionality, or to add localization. Note that although you will receive a SAXException as the argument to the handlers in the ErrorHandler interface, you are not actually required to throw the exception; instead, you can simply read the information in it.
Method Summary
  __init__(self, msg, exception)
Creates an exception.
  __getitem__(self, ix)
Avoids weird error messages if someone does exception[ix] by mistake, since Exception has __getitem__ defined.
  __str__(self)
Create a string representation of the exception.
  getException(self)
Return the embedded exception, or None if there was none.
  getMessage(self)
Return a message for this exception.
    Inherited from Exception
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
    Inherited from BaseException
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __getslice__(x, i, j)
Use of negative indices is not supported.
  __reduce__(...)
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __setstate__(...)
    Inherited from object
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce_ex__(...)
helper for pickle

Class Variable Summary
    Inherited from BaseException
getset_descriptor args = <attribute 'args' of 'exceptions.BaseException' o...
member_descriptor message = <member 'message' of 'exceptions.BaseException...

Method Details

__init__(self, msg, exception=None)
(Constructor)

Creates an exception. The message is required, but the exception is optional.
Overrides:
exceptions.Exception.__init__

__getitem__(self, ix)
(Indexing operator)

Avoids weird error messages if someone does exception[ix] by mistake, since Exception has __getitem__ defined.
Overrides:
exceptions.BaseException.__getitem__

__str__(self)
(Informal representation operator)

Create a string representation of the exception.
Overrides:
exceptions.BaseException.__str__

getException(self)

Return the embedded exception, or None if there was none.

getMessage(self)

Return a message for this exception.

Generated by Epydoc 2.1 on Mon Aug 27 16:13:10 2007 http://epydoc.sf.net