summaryrefslogtreecommitdiff
path: root/lib/net/http/exceptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http/exceptions.rb')
-rw-r--r--lib/net/http/exceptions.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/net/http/exceptions.rb b/lib/net/http/exceptions.rb
index 0d34526616..933cd64ace 100644
--- a/lib/net/http/exceptions.rb
+++ b/lib/net/http/exceptions.rb
@@ -20,7 +20,15 @@ class Net::HTTPServerException < Net::ProtoServerError
# We cannot use the name "HTTPServerError", it is the name of the response.
include Net::HTTPExceptions
end
+
+# for compatibility
+Net::HTTPClientException = Net::HTTPServerException
+
class Net::HTTPFatalError < Net::ProtoFatalError
include Net::HTTPExceptions
end
+module Net
+ deprecate_constant(:HTTPServerException)
+ deprecate_constant(:ProtoServerError)
+end