brief-extractor/backend/venv/lib/python3.10/site-packages/banks/errors.py
2026-03-06 18:42:46 +00:00

25 lines
580 B
Python
Executable file

# SPDX-FileCopyrightText: 2023-present Massimiliano Pippi <mpippi@gmail.com>
#
# SPDX-License-Identifier: MIT
class MissingDependencyError(Exception):
"""Some optional dependencies are missing."""
class AsyncError(Exception):
"""An error related to asyncio support."""
class CanaryWordError(Exception):
"""The canary word has leaked."""
class PromptNotFoundError(Exception):
"""The prompt was now found in the registry."""
class InvalidPromptError(Exception):
"""The prompt is not valid."""
class LLMError(Exception):
"""The LLM had problems."""