Exception: Resque::Mcp::Adapter::FailureOutOfRangeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/resque/mcp/adapter.rb

Instance Method Summary collapse

Constructor Details

#initialize(index, count) ⇒ FailureOutOfRangeError

Returns a new instance of FailureOutOfRangeError.



15
16
17
18
# File 'lib/resque/mcp/adapter.rb', line 15

def initialize(index, count)
  super("No failure at index #{index}. Current failure count: #{count}" \
    "#{" (valid indexes 0..#{count - 1})" if count > 0}.")
end