class Discorb::HTTPError

Represents a HTTP error. @abstract

Attributes

code[R]

@return [String] the HTTP response code.

response[R]

@return [Net::HTTPResponse] the HTTP response.

Public Class Methods

new(resp, data) click to toggle source

@!visibility private

Calls superclass method
# File lib/discorb/error.rb, line 47
def initialize(resp, data)
  @code = data[:code]
  @response = resp
  super(data[:message])
end