Exception: Uploadcare::Exception::ThrottleError
- Inherits:
-
StandardError
- Object
- StandardError
- Uploadcare::Exception::ThrottleError
- Defined in:
- lib/uploadcare/exception/throttle_error.rb
Overview
Exception for throttled requests
Instance Attribute Summary collapse
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(timeout = 10.0) ⇒ ThrottleError
constructor
A new instance of ThrottleError.
Constructor Details
#initialize(timeout = 10.0) ⇒ ThrottleError
Returns a new instance of ThrottleError.
10 11 12 13 |
# File 'lib/uploadcare/exception/throttle_error.rb', line 10 def initialize(timeout = 10.0) super @timeout = timeout end |
Instance Attribute Details
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/uploadcare/exception/throttle_error.rb', line 7 def timeout @timeout end |