Skip to content

Commit

Permalink
Merge pull request #60 from nobu/rename-HTTPClientException
Browse files Browse the repository at this point in the history
Make the recommended name formal
  • Loading branch information
nobu committed May 20, 2022
2 parents 9b91f08 + b3028fe commit 1aaeb77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/net/http/exceptions.rb
Original file line number Diff line number Diff line change
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 1aaeb77

Please sign in to comment.