Skip to content

Commit 1aaeb77

Browse files
authored
Merge pull request #60 from nobu/rename-HTTPClientException
Make the recommended name formal
2 parents 9b91f08 + b3028fe commit 1aaeb77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/net/http/exceptions.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class Net::HTTPError < Net::ProtocolError
1616
class Net::HTTPRetriableError < Net::ProtoRetriableError
1717
include Net::HTTPExceptions
1818
end
19-
class Net::HTTPServerException < Net::ProtoServerError
20-
# We cannot use the name "HTTPServerError", it is the name of the response.
19+
class Net::HTTPClientException < Net::ProtoServerError
2120
include Net::HTTPExceptions
2221
end
2322

2423
# for compatibility
25-
Net::HTTPClientException = Net::HTTPServerException
24+
Net::HTTPServerException = Net::HTTPClientException # :nodoc:
25+
# We cannot use the name "HTTPServerError", it is the name of the response.
2626

2727
class Net::HTTPFatalError < Net::ProtoFatalError
2828
include Net::HTTPExceptions

0 commit comments

Comments
 (0)