mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
14 lines
342 B
Python
14 lines
342 B
Python
from __future__ import annotations
|
|
|
|
|
|
class AstrBotError(Exception):
|
|
"""Base exception for all AstrBot errors."""
|
|
|
|
|
|
class ProviderNotFoundError(AstrBotError):
|
|
"""Raised when a specified provider is not found."""
|
|
|
|
|
|
class EmptyModelOutputError(AstrBotError):
|
|
"""Raised when the model response contains no usable assistant output."""
|