Exception: SpreedlyCore::InvalidResponse

Inherits:
Error
  • Object
show all
Defined in:
lib/spreedly-core-ruby.rb

Instance Method Summary collapse

Constructor Details

#initialize(response, message) ⇒ InvalidResponse

Returns a new instance of InvalidResponse.



29
30
31
# File 'lib/spreedly-core-ruby.rb', line 29

def initialize(response, message)
  super("#{message}\nResponse:\n#{response.inspect}")
end