mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
expose xml.sax Exceptions (#280)
This commit is contained in:
committed by
Guido van Rossum
parent
44b367c7fe
commit
cc735b1176
@@ -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): ...
|
||||
|
||||
20
stdlib/3/xml/sax/__init__.pyi
Normal file
20
stdlib/3/xml/sax/__init__.pyi
Normal 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): ...
|
||||
Reference in New Issue
Block a user