Exception: Ears::Consumer::InvalidReturnError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ears/consumer.rb

Overview

Error that is raised when an invalid value is returned from #work

Instance Method Summary collapse

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