Exception: Slack::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Slack::Error
- Defined in:
- lib/slack/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#http_response ⇒ Object
Returns the value of attribute http_response.
Instance Method Summary collapse
-
#initialize(error, http_response = nil) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(error, http_response = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/slack/error.rb', line 5 def initialize(error, http_response=nil) @error = error @http_response = http_response end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
4 5 6 |
# File 'lib/slack/error.rb', line 4 def error @error end |
#http_response ⇒ Object
Returns the value of attribute http_response.
4 5 6 |
# File 'lib/slack/error.rb', line 4 def http_response @http_response end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/slack/error.rb', line 10 def to_s "#{error}" end |