Exception: SlackBot::Errors::SlackResponseError
- Inherits:
-
SlackBot::Error
- Object
- StandardError
- SlackBot::Error
- SlackBot::Errors::SlackResponseError
- Defined in:
- lib/slack_bot/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#payload ⇒ Object
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.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
49 50 51 |
# File 'lib/slack_bot/errors.rb', line 49 def data @data end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
49 50 51 |
# File 'lib/slack_bot/errors.rb', line 49 def error @error end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
49 50 51 |
# File 'lib/slack_bot/errors.rb', line 49 def payload @payload end |