errors
Module¶
Exceptions.
-
exception
wpull.errors.
AuthenticationError
[source]¶ Bases:
wpull.errors.ServerError
Username or password error.
-
exception
wpull.errors.
ConnectionRefused
[source]¶ Bases:
wpull.errors.NetworkError
Server was online, but nothing was being served.
-
exception
wpull.errors.
DNSNotFound
[source]¶ Bases:
wpull.errors.NetworkError
Server’s IP address could not be located.
-
wpull.errors.
ERROR_PRIORITIES
= (<class 'wpull.errors.ServerError'>, <class 'wpull.errors.ProtocolError'>, <class 'wpull.errors.SSLVerificationError'>, <class 'wpull.errors.AuthenticationError'>, <class 'wpull.errors.DNSNotFound'>, <class 'wpull.errors.ConnectionRefused'>, <class 'wpull.errors.NetworkError'>, <class 'OSError'>, <class 'OSError'>, <class 'ValueError'>)¶ List of error classes by least severe to most severe.
-
class
wpull.errors.
ExitStatus
[source]¶ Bases:
object
Program exit status codes.
-
generic_error
¶ 1
An unclassified serious or fatal error occurred.
-
parser_error
¶ 2
A local document or configuration file could not be parsed.
-
file_io_error
¶ 3
A problem with reading/writing a file occurred.
-
network_failure
¶ 4
A problem with the network occurred such as a DNS resolver error or a connection was refused.
-
ssl_verification_error
¶ 5
A server’s SSL/TLS certificate was invalid.
-
authentication_failure
¶ 6
A problem with a username or password.
-
protocol_error
¶ 7
A problem with communicating with a server occurred.
-
server_error
¶ 8
The server had problems fulfilling our requests.
-
authentication_failure
= 6
-
file_io_error
= 3
-
generic_error
= 1
-
network_failure
= 4
-
parser_error
= 2
-
protocol_error
= 7
-
server_error
= 8
-
ssl_verification_error
= 5
-
-
exception
wpull.errors.
NetworkTimedOut
[source]¶ Bases:
wpull.errors.NetworkError
Connection read/write timed out.
-
wpull.errors.
SSLVerficationError
¶ alias of
SSLVerificationError