Exception: BusinessInsightApiClient::Errors::BusinessInsightApiRequestError
- Inherits:
-
StandardError
- Object
- StandardError
- BusinessInsightApiClient::Errors::BusinessInsightApiRequestError
- Defined in:
- lib/business_insight_api_client/errors.rb
Overview
General error class for Request based errors.
Direct Known Subclasses
BadRequestError, ForbiddenError, InternalError, NotFoundError, UnauthorizedError, UnavailableError
Instance Attribute Summary collapse
-
#full_code ⇒ String
readonly
The full error message as received from the server.
-
#status_code ⇒ Integer
readonly
The status code as received from the server.
Instance Method Summary collapse
-
#initialize(status_code, full_code) ⇒ BusinessInsightApiRequestError
constructor
A new instance of BusinessInsightApiRequestError.
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_code ⇒ String (readonly)
Returns 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_code ⇒ Integer (readonly)
Returns 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 |