Skip to content

Commit de79c38

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/http/exceptions.rb

Lines changed: 2 additions & 2 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
19+
class Net::HTTPClientException < Net::ProtoServerError
2020
# We cannot use the name "HTTPServerError", it is the name of the response.
2121
include Net::HTTPExceptions
2222
end
2323

2424
# for compatibility
25-
Net::HTTPClientException = Net::HTTPServerException
25+
Net::HTTPServerException = Net::HTTPClientException
2626

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

0 commit comments

Comments
 (0)