| | |
- exceptions.Exception
-
- SAXException
-
- SAXNotRecognizedException
- SAXNotSupportedException
-
- SAXReaderNotAvailable
- SAXParseException
class SAXException(exceptions.Exception) |
| |
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. |
| |
Methods defined here:
- __getitem__(self, ix)
- Avoids weird error messages if someone does exception[ix] by
mistake, since Exception has __getitem__ defined.
- __init__(self, msg, exception=None)
- Creates an exception. The message is required, but the exception
is optional.
- __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.
|
class SAXParseException(SAXException) |
| |
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. |
| |
- Method resolution order:
- SAXParseException
- SAXException
- exceptions.Exception
Methods defined here:
- __init__(self, msg, exception, locator)
- Creates the exception. The exception parameter is allowed to be None.
- __str__(self)
- Create a string representation of 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.
Methods inherited from SAXException:
- __getitem__(self, ix)
- Avoids weird error messages if someone does exception[ix] by
mistake, since Exception has __getitem__ defined.
- getException(self)
- Return the embedded exception, or None if there was none.
- getMessage(self)
- Return a message for this exception.
|
|