Exception: Brightpearl::Throttled

Inherits:
StandardError
  • Object
show all
Defined in:
lib/brightpearl/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response: nil, status: nil) ⇒ Throttled

Returns a new instance of Throttled.



19
20
21
22
23
# File 'lib/brightpearl/errors.rb', line 19

def initialize(msg, response: nil, status: nil)
  super(msg)
  @response = response
  @status = status
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



18
19
20
# File 'lib/brightpearl/errors.rb', line 18

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



18
19
20
# File 'lib/brightpearl/errors.rb', line 18

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



18
19
20
# File 'lib/brightpearl/errors.rb', line 18

def status
  @status
end