Exception: Decommas::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/decommas/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Returns a new instance of ResponseError.



9
10
11
# File 'lib/decommas/errors.rb', line 9

def initialize(response)
  super("DecommasApi returned: #{response.code} #{response.message}")
end