Exception: LedgerSync::Error::LedgerError::ThrottleError
- Inherits:
-
LedgerSync::Error::LedgerError
- Object
- StandardError
- LedgerSync::Error
- LedgerSync::Error::LedgerError
- LedgerSync::Error::LedgerError::ThrottleError
- Defined in:
- lib/ledger_sync/error/ledger_errors.rb
Instance Attribute Summary collapse
-
#rate_limiting_wait_in_seconds ⇒ Object
readonly
Returns the value of attribute rate_limiting_wait_in_seconds.
Attributes inherited from LedgerSync::Error::LedgerError
Attributes inherited from LedgerSync::Error
Instance Method Summary collapse
-
#initialize(client:, message: nil, response: nil) ⇒ ThrottleError
constructor
A new instance of ThrottleError.
Constructor Details
#initialize(client:, message: nil, response: nil) ⇒ ThrottleError
Returns a new instance of ThrottleError.
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/ledger_sync/error/ledger_errors.rb', line 43 def initialize(client:, message: nil, response: nil) ||= 'Your request has been throttled.' @rate_limiting_wait_in_seconds = LedgerSync.ledgers.config_from_class( client_class: client.class ).rate_limiting_wait_in_seconds super( client: client, message: , response: response ) end |
Instance Attribute Details
#rate_limiting_wait_in_seconds ⇒ Object (readonly)
Returns the value of attribute rate_limiting_wait_in_seconds.
41 42 43 |
# File 'lib/ledger_sync/error/ledger_errors.rb', line 41 def rate_limiting_wait_in_seconds @rate_limiting_wait_in_seconds end |