Exception: Slack::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/slack/error.rb

Direct Known Subclasses

AuthError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject

Returns the value of attribute error.



4
5
6
# File 'lib/slack/error.rb', line 4

def error
  @error
end

#http_responseObject

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_sObject



10
11
12
# File 'lib/slack/error.rb', line 10

def to_s
  "#{error}"
end