Skip to content

Commit b3028fe

Browse files
committed
Make the recommended name formal
`HTTPServerException` is the name deprecated since years ago.
1 parent 9b91f08 commit b3028fe

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)