Class: Slack::Web::Api::Errors::SlackError

Inherits:
Faraday::Error
  • Object
show all
Defined in:
lib/slack/web/api/errors/slack_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ SlackError


8
9
10
11
# File 'lib/slack/web/api/errors/slack_error.rb', line 8

def initialize(message, response = nil)
  @response = response
  super message
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response


6
7
8
# File 'lib/slack/web/api/errors/slack_error.rb', line 6

def response
  @response
end