Exception: DearInventory::RequestError

Inherits:
Error
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dear_inventory/errors/request.rb

Direct Known Subclasses

BadRequestError

Instance Attribute Summary collapse

Attributes inherited from Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, response = nil) ⇒ RequestError

Returns a new instance of RequestError.



17
18
19
20
21
# File 'lib/dear_inventory/errors/request.rb', line 17

def initialize(message = nil, response = nil)
  super(message)

  @response = T.let(response, T.nilable(DearInventory::Response))
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/dear_inventory/errors/request.rb', line 9

def response
  @response
end