You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
RuntimeError
  • Object
show all
Defined in:
gems/aws-eventstream/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



7
8
9
10
11
# File 'gems/aws-eventstream/lib/aws-eventstream/errors.rb', line 7

def initialize(target_byte, total_len)
  msg = "Attempting reading bytes to offset #{target_byte} exceeds"\
    " buffer length of #{total_len}"
  super(msg)
end