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(message = nil, timeout: 10.0) ⇒ ThrottleError
constructor
A new instance of ThrottleError.
Constructor Details
#initialize(message = nil, timeout: 10.0) ⇒ ThrottleError
Returns a new instance of ThrottleError.
8 9 10 11 |
# File 'lib/uploadcare/exception/throttle_error.rb', line 8 def initialize( = nil, timeout: 10.0) super() @timeout = timeout end |
Instance Attribute Details
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/uploadcare/exception/throttle_error.rb', line 5 def timeout @timeout end |