Exception: Ears::Consumer::InvalidReturnError
- Inherits:
-
StandardError
- Object
- StandardError
- Ears::Consumer::InvalidReturnError
- Defined in:
- lib/ears/consumer.rb
Overview
Error that is raised when an invalid value is returned from #work
Instance Method Summary collapse
-
#initialize(value) ⇒ InvalidReturnError
constructor
A new instance of InvalidReturnError.
Constructor Details
#initialize(value) ⇒ InvalidReturnError
Returns a new instance of InvalidReturnError.
9 10 11 12 13 |
# File 'lib/ears/consumer.rb', line 9 def initialize(value) super( "#work must return :ack, :reject or :requeue, received #{value.inspect} instead", ) end |