Exception: Slacks::ResponseError

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

Direct Known Subclasses

UnableToDirectMessageError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, message) ⇒ ResponseError

Returns a new instance of ResponseError.



13
14
15
16
17
# File 'lib/slacks/errors.rb', line 13

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



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

def response
  @response
end