Exception: Graphlient::Errors::HttpServerError
- Defined in:
- lib/graphlient/errors/http_server_error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, response) ⇒ HttpServerError
constructor
A new instance of HttpServerError.
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(, response) super(, response) @status_code = response.code @response = response.body end |
Instance Attribute Details
#response ⇒ Object (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_code ⇒ Object (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 |