Exception: NetologyGroup::TasksClient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- NetologyGroup::TasksClient::Error
- Defined in:
- lib/netology_group/tasks_client/error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 12 13 14 |
# File 'lib/netology_group/tasks_client/error.rb', line 7 def initialize # @response = response # @status = response.status # @body = json_response # # super(default_error_message) super end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/netology_group/tasks_client/error.rb', line 4 def body @body end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/netology_group/tasks_client/error.rb', line 4 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/netology_group/tasks_client/error.rb', line 4 def status @status end |