From b3028fef5aa35fd1d540da261dccd6d3f35bdd39 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 20 May 2022 23:02:10 +0900 Subject: [PATCH] Make the recommended name formal `HTTPServerException` is the name deprecated since years ago. --- 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 da5f7a70..d5ca3a6f 100644 --- a/lib/net/http/exceptions.rb +++ b/lib/net/http/exceptions.rb @@ -16,13 +16,13 @@ class Net::HTTPError < Net::ProtocolError 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