Exception: FDE::Slack::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- FDE::Slack::APIError
- Defined in:
- lib/slack/util/http_client.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ APIError
constructor
A new instance of APIError.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ APIError
Returns a new instance of APIError.
14 15 16 |
# File 'lib/slack/util/http_client.rb', line 14 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
12 13 14 |
# File 'lib/slack/util/http_client.rb', line 12 def response @response end |
Instance Method Details
#message ⇒ Object
18 19 20 21 22 23 |
# File 'lib/slack/util/http_client.rb', line 18 def <<-MSG The slack API returned an error with HTTP Code #{@response.code} Check the "Handling Errors" section on https://api.slack.com/incoming-webhooks for more information MSG end |