class Bunny::BadLengthError

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 www.rabbitmq.com/resources/specs/amqp0-9-1.pdf AMQP 0.9.1 specification (Section 2.3)

Public Class Methods

new(expected_length, actual_length) click to toggle source
Calls superclass method
# File lib/bunny/exceptions.rb, line 194
def initialize(expected_length, actual_length)
  super("Frame payload should be #{expected_length} long, but it's #{actual_length} long.")
end