class Slack::Error

This is the usual error raised on any Slack related Errors @!attribute http_response

@return [Object] server response

@!attribute error

@return [String] the name of the error

Attributes

error[RW]
http_response[RW]

Public Class Methods

new(error, http_response = nil) click to toggle source
# File lib/slack/error.rb, line 13
def initialize(error, http_response = nil)
  @error = error
  @http_response = http_response
end

Public Instance Methods

to_s() click to toggle source

String representation @return [String]

# File lib/slack/error.rb, line 20
def to_s
  "#{error}"
end