Exception: Gitrob::Github::HttpClient::RequestError

Inherits:
HttpError
  • Object
show all
Defined in:
lib/gitrob/github/http_client.rb

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, path, status, body, options) ⇒ RequestError

Returns a new instance of RequestError.



12
13
14
15
16
# File 'lib/gitrob/github/http_client.rb', line 12

def initialize(method, path, status, body, options)
  @status = status
  @body   = body
  super("#{method} to #{path} returned status #{status} - options: #{options.inspect}")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



11
12
13
# File 'lib/gitrob/github/http_client.rb', line 11

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



11
12
13
# File 'lib/gitrob/github/http_client.rb', line 11

def status
  @status
end