class SmartTodo::SlackClient::Error

A generic error class raised when the Slack API returns back a 200 but there was a problem (permission issues …)

Attributes

error_code[R]

Public Class Methods

new(response_body) click to toggle source

@param response_body [Hash] the parsed response body from Slack

Calls superclass method
# File lib/smart_todo/slack_client.rb, line 18
def initialize(response_body)
  @error_code = response_body['error']

  super("Response body: #{response_body}")
end