Exception: Tend::HttpError
- Inherits:
-
Exception
- Object
- Exception
- Tend::HttpError
- Defined in:
- lib/tend/errors/http_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg = nil, code = nil, response = nil) ⇒ HttpError
constructor
A new instance of HttpError.
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
#code ⇒ Object
Returns the value of attribute code.
2 3 4 |
# File 'lib/tend/errors/http_error.rb', line 2 def code @code end |
#response ⇒ Object
Returns the value of attribute response.
2 3 4 |
# File 'lib/tend/errors/http_error.rb', line 2 def response @response end |