Class: Slack::Web::Api::Errors::ServerError

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

Direct Known Subclasses

HttpRequestError, ParsingError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ ServerError

Returns a new instance of ServerError.



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

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/slack/web/api/errors/server_error.rb', line 7

def response
  @response
end