Skip to content

Commit

Permalink
Make the recommended name formal
Browse files Browse the repository at this point in the history
`HTTPServerException` is the name deprecated since years ago.
  • Loading branch information
nobu committed May 20, 2022
1 parent 9b91f08 commit b3028fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/net/http/exceptions.rb
Expand Up @@ -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
Expand Down

0 comments on commit b3028fe

Please sign in to comment.