sig/errors.rbs in httpx-0.22.5 vs sig/errors.rbs in httpx-0.23.0
- old
+ new
@@ -1,9 +1,15 @@
module HTTPX
class Error < StandardError
end
+ class UnsupportedSchemeError < Error
+ end
+
+ class ConnectionError < Error
+ end
+
class TimeoutError < Error
attr_reader timeout: Numeric
def to_connection_error: () -> ConnectTimeoutError
private
@@ -52,7 +58,10 @@
attr_reader host: String
private
def initialize: (Connection connection, String hostname, ?String message) -> untyped
+ end
+
+ class MisdirectedRequestError < HTTPError
end
end
\ No newline at end of file