mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-11 00:06:04 +00:00
14 lines
407 B
Python
14 lines
407 B
Python
from __future__ import annotations
|
|
|
|
try:
|
|
from langbot_plugin.api.entities.builtin.platform.errors import NotSupportedError
|
|
except ModuleNotFoundError:
|
|
|
|
class NotSupportedError(Exception):
|
|
def __init__(self, api_name: str, *args):
|
|
super().__init__(f"API '{api_name}' is not supported by this adapter", *args)
|
|
self.api_name = api_name
|
|
|
|
|
|
__all__ = ['NotSupportedError']
|