Exception: Booby::InvalidResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/booby/errors.rb

Overview

Public: Error raised when processor returns unexpected stuff.

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ InvalidResponseError

Returns a new instance of InvalidResponseError.



8
9
10
11
12
13
# File 'lib/booby/errors.rb', line 8

def initialize(obj)
  super(
    "Invalid response from processor. Expected `true', `false'" +
    "or an instance of processor, got: #{obj.inspect}"
  )
end