Exception: HybiscusPdfReport::ApiError

Inherits:
StandardError
  • Object
show all
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.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, response: nil, status_code: nil)
  super(message)
  @response = response
  @status_code = status_code
end

Instance Attribute Details

#responseObject (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_codeObject (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