Exception: BunnyCdn::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- BunnyCdn::ApiError
- Defined in:
- lib/bunny_cdn/error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, response:) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, status:, response:) ⇒ ApiError
Returns a new instance of ApiError.
5 6 7 8 9 |
# File 'lib/bunny_cdn/error.rb', line 5 def initialize(, status:, response:) super() @status = status @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/bunny_cdn/error.rb', line 3 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/bunny_cdn/error.rb', line 3 def status @status end |