Skip to content

Commit 3b713e4

Browse files
dak2claude
andcommitted
Declare Net::ReadLimitExceeded
net-protocol 0.3.0 adds it, raised when readuntil does not find the terminator within the given byte limit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 5de6ecd commit 3b713e4

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)