Exception: SlackBot::Errors::SlackResponseError
- Inherits:
-
SlackBot::Error
- Object
- StandardError
- SlackBot::Error
- SlackBot::Errors::SlackResponseError
- Defined in:
- lib/slack_bot/errors.rb,
sig/slack_bot.rbs
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Hash[String, untyped]?
readonly
Returns the value of attribute data.
-
#error ⇒ String
readonly
Returns the value of attribute error.
-
#payload ⇒ Hash[String, untyped]?
readonly
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(error, data: nil, payload: nil) ⇒ SlackResponseError
constructor
A new instance of SlackResponseError.
Constructor Details
#initialize(error, data: nil, payload: nil) ⇒ SlackResponseError
Returns a new instance of SlackResponseError.
56 57 58 59 60 |
# File 'lib/slack_bot/errors.rb', line 56 def initialize(error, data: nil, payload: nil) @error = error @data = data @payload = payload end |
Instance Attribute Details
#data ⇒ Hash[String, untyped]? (readonly)
Returns the value of attribute data.
55 56 57 |
# File 'lib/slack_bot/errors.rb', line 55 def data @data end |
#error ⇒ String (readonly)
Returns the value of attribute error.
55 56 57 |
# File 'lib/slack_bot/errors.rb', line 55 def error @error end |
#payload ⇒ Hash[String, untyped]? (readonly)
Returns the value of attribute payload.
55 56 57 |
# File 'lib/slack_bot/errors.rb', line 55 def payload @payload end |