Exception: HybiscusPdfReport::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- HybiscusPdfReport::ApiError
- Defined in:
- lib/hybiscus_pdf_report/api_errors.rb,
lib/hybiscus_pdf_report/errors.rb
Overview
rubocop:disable Style/CommentedKeyword Base error class for all Hybiscus PDF Report API errors.
Direct Known Subclasses
ApiRequestsQuotaReachedError, BadRequestError, ForbiddenError, NotFoundError, PaymentRequiredError, RateLimitError, UnauthorizedError, UnprocessableContentError
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = nil, response: nil, status_code: nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message = nil, response: nil, status_code: nil) ⇒ ApiError
Returns a new instance of ApiError.
12 13 14 15 16 |
# File 'lib/hybiscus_pdf_report/api_errors.rb', line 12 def initialize( = nil, response: nil, status_code: nil) super() @response = response @status_code = status_code end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
10 11 12 |
# File 'lib/hybiscus_pdf_report/api_errors.rb', line 10 def response @response end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
10 11 12 |
# File 'lib/hybiscus_pdf_report/api_errors.rb', line 10 def status_code @status_code end |