expose xml.sax Exceptions (#280)

This commit is contained in:
Michael R. Crusoe
2016-07-26 16:45:27 +02:00
committed by Guido van Rossum
parent 44b367c7fe
commit cc735b1176
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# Stubs for xml.sax (Python 2.7)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
class SAXException(Exception):
def __init__(self, msg, exception=None): ...
def getMessage(self): ...
def getException(self): ...
def __getitem__(self, ix): ...
class SAXParseException(SAXException):
def __init__(self, msg, exception, locator): ...
def getColumnNumber(self): ...
def getLineNumber(self): ...
def getPublicId(self): ...
def getSystemId(self): ...
class SAXNotRecognizedException(SAXException): ...
class SAXNotSupportedException(SAXException): ...
class SAXReaderNotAvailable(SAXNotSupportedException): ...

View File

@@ -0,0 +1,20 @@
# Stubs for xml.sax (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
class SAXException(Exception):
def __init__(self, msg, exception=None): ...
def getMessage(self): ...
def getException(self): ...
def __getitem__(self, ix): ...
class SAXParseException(SAXException):
def __init__(self, msg, exception, locator): ...
def getColumnNumber(self): ...
def getLineNumber(self): ...
def getPublicId(self): ...
def getSystemId(self): ...
class SAXNotRecognizedException(SAXException): ...
class SAXNotSupportedException(SAXException): ...
class SAXReaderNotAvailable(SAXNotSupportedException): ...