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 Attribute Details

#code -> String (readonly)

Returns the HTTP response code.

Returns:

  • (String)

    the HTTP response code.



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

def code
  @code
end

#response -> Net::HTTPResponse (readonly)

Returns the HTTP response.

Returns:

  • (Net::HTTPResponse)

    the HTTP response.



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

def response
  @response
end