Exception: Slacks::ResponseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/slacks/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(response, message) ⇒ ResponseError

Returns a new instance of ResponseError.



11
12
13
14
# File 'lib/slacks/errors.rb', line 11

def initialize(response, message)
  super message
  additional_information[:response] = response
end