summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-05-20 23:02:10 +0900
committergit <svn-admin@ruby-lang.org>2022-05-21 00:41:54 +0900
commit8fa9e168beefbb95415321632cff64e717efdc5b (patch)
treee09e48027b4756738fd247528bc5a0614047f766
parent4146fd284b3c3995cf6638b239625c530c6da875 (diff)
[ruby/net-http] Make the recommended name formal
`HTTPServerException` is the name deprecated since years ago. https://github.com/ruby/net-http/commit/b3028fef5a
-rw-r--r--lib/net/http/exceptions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/net/http/exceptions.rb b/lib/net/http/exceptions.rb
index da5f7a70fc..d5ca3a6f2c 100644
--- a/lib/net/http/exceptions.rb
+++ b/lib/net/http/exceptions.rb
@@ -16,13 +16,13 @@ end
class Net::HTTPRetriableError < Net::ProtoRetriableError
include Net::HTTPExceptions
end
-class Net::HTTPServerException < Net::ProtoServerError
- # We cannot use the name "HTTPServerError", it is the name of the response.
+class Net::HTTPClientException < Net::ProtoServerError
include Net::HTTPExceptions
end
# for compatibility
-Net::HTTPClientException = Net::HTTPServerException
+Net::HTTPServerException = Net::HTTPClientException # :nodoc:
+# We cannot use the name "HTTPServerError", it is the name of the response.
class Net::HTTPFatalError < Net::ProtoFatalError
include Net::HTTPExceptions