Exceptions¶
Exception hierarchy for proxy parsing, configuration, and protocol errors.
proxy_string.exceptions
¶
Exceptions for proxy-string.
InvalidProxyStringError
¶
Bases: ProxyStringError
Raised when the input proxy string is invalid or cannot be parsed.
Source code in src/proxy_string/exceptions.py
InvalidProxyURLError
¶
Bases: ProxyStringError
Raised when the input proxy URL is malformed or invalid.
Source code in src/proxy_string/exceptions.py
ProtocolConstraintError
¶
Bases: ProxyConfigurationError
Raised when protocol network constraints are violated.
Source code in src/proxy_string/exceptions.py
ProtocolNotSupportedError
¶
ProtocolNotSupportedError(
message: str,
*,
package_name: str | None = None,
protocol: str | None = None,
)
Bases: ProxyConfigurationError
Raised when a proxy protocol is not supported by the target library.
Source code in src/proxy_string/exceptions.py
ProxyConfigurationError
¶
Bases: ProxyStringError
Base exception for proxy configuration and constraint errors.
ProxyStringError
¶
Bases: Exception
Base exception for all proxy-string errors.
UnsupportedPackageError
¶
Bases: ProxyConfigurationError
Raised when a third-party client library is not supported.