Exception: SlackBot::Errors::SlackResponseError

Inherits:
SlackBot::Error
  • Object
show all
Defined in:
lib/slack_bot/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, data: nil, payload: nil) ⇒ SlackResponseError

Returns a new instance of SlackResponseError.



50
51
52
53
54
# File 'lib/slack_bot/errors.rb', line 50

def initialize(error, data: nil, payload: nil)
  @error = error
  @data = data
  @payload = payload
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



49
50
51
# File 'lib/slack_bot/errors.rb', line 49

def data
  @data
end

#errorObject (readonly)

Returns the value of attribute error.



49
50
51
# File 'lib/slack_bot/errors.rb', line 49

def error
  @error
end

#payloadObject (readonly)

Returns the value of attribute payload.



49
50
51
# File 'lib/slack_bot/errors.rb', line 49

def payload
  @payload
end