Exception: Slacks::Response::Error

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

Direct Known Subclasses

UnspecifiedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, params, response, message) ⇒ Error

Returns a new instance of Error.



8
9
10
11
12
13
14
15
16
# File 'lib/slacks/errors.rb', line 8

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

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



6
7
8
# File 'lib/slacks/errors.rb', line 6

def command
  @command
end

#paramsObject (readonly)

Returns the value of attribute params.



6
7
8
# File 'lib/slacks/errors.rb', line 6

def params
  @params
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/slacks/errors.rb', line 6

def response
  @response
end