Exception: TAPI::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- TAPI::Error
- Defined in:
- lib/tapi/v3/errors.rb
Direct Known Subclasses
BadRequestError, ExpiredError, InternalServerError, MovedError, NotFoundError
Instance Attribute Summary collapse
-
#request_url ⇒ Object
Returns the value of attribute request_url.
-
#response_body ⇒ Object
Returns the value of attribute response_body.
-
#response_code ⇒ Object
Returns the value of attribute response_code.
Instance Method Summary collapse
Instance Attribute Details
#request_url ⇒ Object
Returns the value of attribute request_url.
4 5 6 |
# File 'lib/tapi/v3/errors.rb', line 4 def request_url @request_url end |
#response_body ⇒ Object
Returns the value of attribute response_body.
4 5 6 |
# File 'lib/tapi/v3/errors.rb', line 4 def response_body @response_body end |
#response_code ⇒ Object
Returns the value of attribute response_code.
4 5 6 |
# File 'lib/tapi/v3/errors.rb', line 4 def response_code @response_code end |
Instance Method Details
#to_s ⇒ Object
6 7 8 |
# File 'lib/tapi/v3/errors.rb', line 6 def to_s "Status code: #{response_code}\nRequest url: #{request_url}\n\n\n#{response_body}" end |