Exception: Brightpearl::Throttled
- Inherits:
-
StandardError
- Object
- StandardError
- Brightpearl::Throttled
- Defined in:
- lib/brightpearl/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(msg, response: nil, status: nil) ⇒ Throttled
constructor
A new instance of Throttled.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
18 19 20 |
# File 'lib/brightpearl/errors.rb', line 18 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
18 19 20 |
# File 'lib/brightpearl/errors.rb', line 18 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
18 19 20 |
# File 'lib/brightpearl/errors.rb', line 18 def status @status end |