Exception: Discorb::HTTPError Abstract

Inherits:
DiscorbError show all
Defined in:
lib/discorb/error.rb

Overview

This class is abstract.

Represents a HTTP error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#response -> Net::HTTPResponse (readonly)

Returns the HTTP response.

Returns:

  • (Net::HTTPResponse)

    the HTTP response.



45
46
47
# File 'lib/discorb/error.rb', line 45

def response
  @response
end

Instance Method Details

#code -> String

Returns the JSON response code.

Returns:

  • (String)

    the JSON response code.

See Also:



43
44
45
# File 'lib/discorb/error.rb', line 43

def code
  @code
end