Skip to content

Commit 928cde2

Browse files
authored
Merge pull request #3107 from dak2/add-net-protocol-read-limit-exceeded
Declare Net::ReadLimitExceeded added in net-protocol 0.3.0
2 parents 58a7361 + 03730f2 commit 928cde2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎stdlib/net-protocol/0/net-protocol.rbs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ module Net
2727
class ProtoRetriableError < ProtocolError
2828
end
2929

30+
# <!-- rdoc-file=lib/net/protocol.rb -->
31+
# ReadLimitExceeded, a subclass of ProtocolError, is raised if the terminator is
32+
# not found within the byte limit given to Net::BufferedIO#readuntil.
33+
#
34+
class ReadLimitExceeded < ProtocolError
35+
end
36+
3037
class HTTPBadResponse < StandardError
3138
end
3239

0 commit comments

Comments
 (0)