ruby-changes:71904
From: Nobuyoshi <ko1@a...>
Date: Sat, 21 May 2022 00:42:06 +0900 (JST)
Subject: [ruby-changes:71904] 8fa9e168be (master): [ruby/net-http] Make the recommended name formal
https://git.ruby-lang.org/ruby.git/commit/?id=8fa9e168be From 8fa9e168beefbb95415321632cff64e717efdc5b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 20 May 2022 23:02:10 +0900 Subject: [ruby/net-http] Make the recommended name formal `HTTPServerException` is the name deprecated since years ago. https://github.com/ruby/net-http/commit/b3028fef5a --- lib/net/http/exceptions.rb | 6 +++--- 1 file 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 https://github.com/ruby/ruby/blob/trunk/lib/net/http/exceptions.rb#L16 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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/