Exception: Umami::AuthenticationError
- Defined in:
- lib/umami/errors.rb
Overview
Error raised when authentication fails — a rejected login, a login
response without a token, or an API request answered 401/403 (an
expired or revoked token on a long-lived client, insufficient
permissions). Deliberately a subclass of APIError since 0.2.1:
before that, HTTP 401/403 surfaced as ClientError, so callers who
rescue Umami::APIError were already catching them — subclassing
APIError keeps those rescues working while giving auth failures
their own class to match on.