Exception: NetologyGroup::TasksClient::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/netology_group/tasks_client/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeError

Returns a new instance of Error.

Parameters:

  • response (Excon::Response)


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

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/netology_group/tasks_client/error.rb', line 4

def body
  @body
end

#responseObject (readonly)

Returns the value of attribute response.



4
5
6
# File 'lib/netology_group/tasks_client/error.rb', line 4

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/netology_group/tasks_client/error.rb', line 4

def status
  @status
end