]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Add exceptions to resolver.pyi 382/head
authorDavid Baumgold <david@davidbaumgold.com>
Fri, 12 Jul 2019 14:57:28 +0000 (16:57 +0200)
committerDavid Baumgold <david@davidbaumgold.com>
Fri, 12 Jul 2019 14:57:28 +0000 (16:57 +0200)
dns/resolver.pyi

index e839ec2192fd534799b6774ac2a197634bf192fe..06742fe5fa0e890d31f3a06ee2b3bd1fed41fc67 100644 (file)
@@ -3,8 +3,17 @@ from . import exception, rdataclass, name, rdatatype
 
 import socket
 _gethostbyname = socket.gethostbyname
-class NXDOMAIN(exception.DNSException):
-    ...
+
+class NXDOMAIN(exception.DNSException): ...
+class YXDOMAIN(exception.DNSException): ...
+class NoAnswer(exception.DNSException): ...
+class NoNameservers(exception.DNSException): ...
+class NotAbsolute(exception.DNSException): ...
+class NoRootSOA(exception.DNSException): ...
+class NoMetaqueries(exception.DNSException): ...
+class NoResolverConfiguration(exception.DNSException): ...
+Timeout = exception.Timeout
+
 def query(qname : str, rdtype : Union[int,str] = 0, rdclass : Union[int,str] = 0,
           tcp=False, source=None, raise_on_no_answer=True,
           source_port=0):