UnknownVendorError (vendors/errors.py)

jentic-one · src/jentic_one/control/services/vendors/errors.py · python · Apache-2.0
auth

Domain exceptions for vendor auth registry service.

# Source: https://github.com/jentic/jentic-one | 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.
"""Domain exceptions for the vendor auth registry service."""

from __future__ import annotations


class UnknownVendorError(Exception):
    """Raised when the requested vendor is not in the registry."""

    def __init__(self, vendor: str) -> None:
        super().__init__(f"unknown vendor: {vendor!r}")
        self.vendor = vendor


class UnsupportedFlowError(Exception):
    """Raised when the requested flow kind is not offered by the vendor."""

    def __init__(self, vendor: str, flow: str) -> None:
        super().__init__(f"vendor {vendor!r} does not support flow {flow!r}")
        

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key