Exception: Aws::EventStream::Errors::ReadBytesExceedLengthError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/aws-eventstream/errors.rb

Overview

Raised when reading bytes exceed buffer total bytes

Instance Method Summary collapse

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