Exception: AMQ::Client::BadLengthError

Inherits:
InconsistentDataError show all
Defined in:
lib/amq/client/exceptions.rb

Overview

Raised by adapters when actual frame payload size in bytes is not equal to the size specified in that frame's header. This suggest that there is a bug in adapter or AMQ broker implementation.

See Also:

Instance Method Summary (collapse)

Constructor Details

- (BadLengthError) initialize(expected_length, actual_length)

A new instance of BadLengthError



30
31
32
# File 'lib/amq/client/exceptions.rb', line 30

def initialize(expected_length, actual_length)
  super("Frame payload should be #{expected_length} long, but it's #{actual_length} long.")
end