A base exception class used to catch and handle all authentication and credential-related errors within a CLI application.
# Source: https://github.com/potpie-ai/potpie | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Base exception for the Potpie auth/credential subsystem."""
from __future__ import annotations
class CliAuthError(Exception):
"""Base for all expected CLI auth and credential failures.
Provider flows (GitHub device flow, Firebase, Potpie, Atlassian), the HTTP
transport (:class:`~potpie.auth.adapters.http.AuthHttpError`), and the
credential store all subclass this, so a command boundary can catch the whole
subsystem with a single ``except CliAuthError`` instead of enumerating types.
"""
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key