Exception: FreeAgent::ErrorGenerator

Inherits:
StandardError
  • Object
show all
Defined in:
lib/free_agent/error_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_body, http_status_code) ⇒ ErrorGenerator

Returns a new instance of ErrorGenerator.



7
8
9
10
11
12
# File 'lib/free_agent/error_generator.rb', line 7

def initialize(response_body, http_status_code)
  @response_body = response_body
  @http_status_code = http_status_code
  set_freeagent_error_values
  super(build_message)
end

Instance Attribute Details

#freeagent_error_codeObject (readonly)

Returns the value of attribute freeagent_error_code.



4
5
6
# File 'lib/free_agent/error_generator.rb', line 4

def freeagent_error_code
  @freeagent_error_code
end

#freeagent_error_messageObject (readonly)

Returns the value of attribute freeagent_error_message.



5
6
7
# File 'lib/free_agent/error_generator.rb', line 5

def freeagent_error_message
  @freeagent_error_message
end

#http_status_codeObject (readonly)

Returns the value of attribute http_status_code.



3
4
5
# File 'lib/free_agent/error_generator.rb', line 3

def http_status_code
  @http_status_code
end