Exception: Auth0::RateLimitEncountered

Inherits:
Unsupported show all
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

#error_data

Instance Method Summary collapse

Methods inherited from HTTPError

#headers, #http_code

Methods inherited from Exception

#initialize

Constructor Details

This class inherits a constructor from Auth0::Exception

Instance Method Details

#resetObject


58
59
60
# File 'lib/auth0/exception.rb', line 58

def reset
  Time.at(headers['X-RateLimit-Reset']).utc
end