Exception: Tend::HttpError

Inherits:
Exception
  • Object
show all
Defined in:
lib/tend/errors/http_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, code = nil, response = nil) ⇒ HttpError

Returns a new instance of HttpError.



4
5
6
7
8
# File 'lib/tend/errors/http_error.rb', line 4

def initialize msg = nil, code = nil, response = nil
  super msg
  @code = code
  @response = response
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



2
3
4
# File 'lib/tend/errors/http_error.rb', line 2

def code
  @code
end

#responseObject

Returns the value of attribute response.



2
3
4
# File 'lib/tend/errors/http_error.rb', line 2

def response
  @response
end