Exception: Render::Errors::Schema::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Render::Errors::Schema::RequestError
- Defined in:
- lib/render/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(endpoint, response) ⇒ RequestError
constructor
A new instance of RequestError.
- #to_s ⇒ Object
Constructor Details
#initialize(endpoint, response) ⇒ RequestError
Returns a new instance of RequestError.
59 60 61 62 |
# File 'lib/render/errors.rb', line 59 def initialize(endpoint, response) self.endpoint = endpoint self.response = response end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
57 58 59 |
# File 'lib/render/errors.rb', line 57 def endpoint @endpoint end |
#response ⇒ Object
Returns the value of attribute response.
57 58 59 |
# File 'lib/render/errors.rb', line 57 def response @response end |
Instance Method Details
#to_s ⇒ Object
64 65 66 |
# File 'lib/render/errors.rb', line 64 def to_s "Could not reach #{endpoint} because #{response}." end |