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

type SAXParseException

              object --+            
                       |            
exceptions.BaseException --+        
                           |        
        exceptions.Exception --+    
                               |    
                    SAXException --+
                                   |
                                  SAXParseException

Encapsulate an XML parse error or warning.

This exception will include information for locating the error in the original XML document. Note that although the application will receive a SAXParseException as the argument to the handlers in the ErrorHandler interface, the application is not actually required to throw the exception; instead, it can simply read the information in it and take a different action.

Since this exception is a subclass of SAXException, it inherits the ability to wrap another exception.

Instance Methods [hide private]
 
__init__(self, msg, exception, locator)
Creates the exception.
 
getColumnNumber(self)
The column number of the end of the text where the exception occurred.
 
getLineNumber(self)
The line number of the end of the text where the exception occurred.
 
getPublicId(self)
Get the public identifier of the entity where the exception occurred.
 
getSystemId(self)
Get the system identifier of the entity where the exception occurred.
 
__str__(self)
Create a string representation of the exception.

Inherited from SAXException: __getitem__, getException, getMessage

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, locator)
(Constructor)

 

Creates the exception. The exception parameter is allowed to be None.

Overrides: exceptions.BaseException.__init__

__str__(self)
(Informal representation operator)

 

Create a string representation of the exception.

Overrides: exceptions.BaseException.__str__