Exception: Uploadcare::Exception::ThrottleError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/uploadcare/exception/throttle_error.rb

Overview

Exception for throttled requests

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeout = 10.0) ⇒ ThrottleError

Returns a new instance of ThrottleError.

Parameters:

  • timeout (Float) (defaults to: 10.0)

    Amount of seconds the request have been throttled for



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

#timeoutObject (readonly)

Returns the value of attribute timeout.



7
8
9
# File 'lib/uploadcare/exception/throttle_error.rb', line 7

def timeout
  @timeout
end