Exception: GorgonBunny::BadLengthError
- Inherits:
-
InconsistentDataError
- Object
- StandardError
- Exception
- InconsistentDataError
- GorgonBunny::BadLengthError
- Defined in:
- lib/gorgon_bunny/lib/gorgon_bunny/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.
Instance Method Summary collapse
-
#initialize(expected_length, actual_length) ⇒ BadLengthError
constructor
A new instance of BadLengthError.
Constructor Details
#initialize(expected_length, actual_length) ⇒ BadLengthError
Returns a new instance of BadLengthError.
161 162 163 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 161 def initialize(expected_length, actual_length) super("Frame payload should be #{expected_length} long, but it's #{actual_length} long.") end |