Exception: Auth0::RateLimitEncountered
- Inherits:
-
Unsupported
- Object
- StandardError
- Exception
- HTTPError
- Unsupported
- Auth0::RateLimitEncountered
- Defined in:
- lib/auth0/exception.rb
Overview
Auth0 API rate-limiting encountered TODO: When making API-breaking changes, make this a subclass of Auth0::HTTPError directly rather than Auth0::Unsupported. It’s currently under Unsupported to avoid breaking compatibility with prior gem versions that treated 429 errors as unknown errors.
Instance Attribute Summary
Attributes inherited from Exception
Instance Method Summary collapse
Methods inherited from HTTPError
Methods inherited from Exception
Constructor Details
This class inherits a constructor from Auth0::Exception
Instance Method Details
#reset ⇒ Object
58 59 60 |
# File 'lib/auth0/exception.rb', line 58 def reset Time.at(headers['X-RateLimit-Reset']).utc end |