mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-23 08:55:44 +08:00
25 lines
827 B
Python
25 lines
827 B
Python
"""Shared plugin operation errors without runtime or application imports."""
|
|
|
|
|
|
class PluginRuntimeNotConnectedError(RuntimeError):
|
|
"""Raised when plugin runtime operations are requested before connection."""
|
|
|
|
|
|
class PluginInstallationFailedError(RuntimeError):
|
|
"""Stable Runtime desired-state failure for one plugin installation."""
|
|
|
|
def __init__(
|
|
self,
|
|
installation_uuid: str,
|
|
error_code: str,
|
|
message: str,
|
|
) -> None:
|
|
self.installation_uuid = installation_uuid
|
|
self.error_code = error_code
|
|
self.runtime_message = message
|
|
super().__init__(f'Plugin installation {installation_uuid} failed [{error_code}]: {message}')
|
|
|
|
|
|
class MarketplacePluginVersionNotFoundError(ValueError):
|
|
"""The requested release is not available from the marketplace."""
|