Exception: RubyCord::HTTPError Abstract

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

Overview

This class is abstract.

Represents a HTTP error.

Instance Attribute Summary collapse

Instance Attribute Details

#codeString (readonly)

Returns the JSON response code.



38
39
40
# File 'lib/rubycord/error.rb', line 38

def code
  @code
end

#responseNet::HTTPResponse (readonly)

Returns the HTTP response.

Returns:

  • (Net::HTTPResponse)

    the HTTP response.



40
41
42
# File 'lib/rubycord/error.rb', line 40

def response
  @response
end