Exception: Graphlient::Errors::HttpServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/graphlient/errors/http_server_error.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#inner_exception

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ HttpServerError

Returns a new instance of HttpServerError.



6
7
8
9
10
# File 'lib/graphlient/errors/http_server_error.rb', line 6

def initialize(message, response)
  super(message, response)
  @status_code = response.code
  @response = response.body
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



4
5
6
# File 'lib/graphlient/errors/http_server_error.rb', line 4

def response
  @response
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



4
5
6
# File 'lib/graphlient/errors/http_server_error.rb', line 4

def status_code
  @status_code
end