Exception: BunnyCdn::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bunny_cdn/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/bunny_cdn/error.rb', line 3

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/bunny_cdn/error.rb', line 3

def status
  @status
end