Exception: UniversalGitClient::Errors::HttpError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/universal-git-client/errors.rb

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response) ⇒ HttpError

Returns a new instance of HttpError.



6
7
8
9
# File 'lib/universal-git-client/errors.rb', line 6

def initialize(msg, response)
  @response = response
  super(msg)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



4
5
6
# File 'lib/universal-git-client/errors.rb', line 4

def response
  @response
end