From 8e37f17671848859c6c9749a19909c3fd0d133aa Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 6 Jun 2018 09:01:04 +0000 Subject: Add Net::HTTPClientException [Bug #14688] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http/exceptions.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3