Exception: Aws::EventStream::Errors::ReadBytesExceedLengthError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Aws::EventStream::Errors::ReadBytesExceedLengthError
- Defined in:
- lib/aws-eventstream/errors.rb
Overview
Raised when reading bytes exceed buffer total bytes
Instance Method Summary collapse
-
#initialize(target_byte, total_len) ⇒ ReadBytesExceedLengthError
constructor
A new instance of ReadBytesExceedLengthError.
Constructor Details
#initialize(target_byte, total_len) ⇒ ReadBytesExceedLengthError
Returns a new instance of ReadBytesExceedLengthError.
9 10 11 12 13 |
# File 'lib/aws-eventstream/errors.rb', line 9 def initialize(target_byte, total_len) msg = "Attempting reading bytes to offset #{target_byte} exceeds"\ " buffer length of #{total_len}" super(msg) end |