Trees Indices Help
Python Standard Library
Package xml :: Package sax :: Module _exceptions :: Class SAXException
[]

type SAXException

 object --+ 
 | 
exceptions.BaseException --+ 
 | 
 exceptions.Exception --+
 |
 SAXException
Known Subclasses:

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.

Instance Methods [hide private]
__init__(self, msg, exception=None)
Creates an exception.
getMessage(self)
Return a message for this exception.
getException(self)
Return the embedded exception, or None if there was none.
__str__(self)
Create a string representation of the exception.
__getitem__(self, ix)
Avoids weird error messages if someone does exception[ix] by mistake, since Exception has __getitem__ defined.

Inherited from exceptions.Exception : __new__

Inherited from exceptions.BaseException : __delattr__ , __getattribute__ , __getslice__ , __reduce__ , __repr__ , __setattr__ , __setstate__

Properties [hide private]

Inherited from exceptions.BaseException : args , message

Method Details [hide private]

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

Creates an exception. The message is required, but the exception is optional.

Overrides: exceptions.BaseException.__init__

__str__(self)
(Informal representation operator)

Create a string representation of the exception.

Overrides: exceptions.BaseException.__str__

__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__

Trees Indices Help
Python Standard Library

AltStyle によって変換されたページ (->オリジナル) /