Exception: BusinessInsightApiClient::Errors::BusinessInsightApiRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/business_insight_api_client/errors.rb

Overview

General error class for Request based errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, full_code) ⇒ BusinessInsightApiRequestError

Returns a new instance of BusinessInsightApiRequestError.



25
26
27
28
# File 'lib/business_insight_api_client/errors.rb', line 25

def initialize(status_code, full_code)
  @status_code = status_code
  @full_code = full_code
end

Instance Attribute Details

#full_codeString (readonly)

Returns the full error message as received from the server.

Returns:

  • (String)

    the full error message as received from the server.



20
21
22
# File 'lib/business_insight_api_client/errors.rb', line 20

def full_code
  @full_code
end

#status_codeInteger (readonly)

Returns the status code as received from the server.

Returns:

  • (Integer)

    the status code as received from the server



23
24
25
# File 'lib/business_insight_api_client/errors.rb', line 23

def status_code
  @status_code
end