2026-11-11 09:43:32 +00:00
|
|
|
"""Exceptions shared by plugin-daemon error decoding and trigger gateways.
|
|
|
|
|
|
|
|
|
|
Keep them outside services while the SDK remains in core. TODO: Move them with
|
|
|
|
|
the shared plugin SDK contracts, updating the decoder and gateway imports
|
|
|
|
|
together and preserving the class names used by daemon error mapping.
|
|
|
|
|
"""
|
|
|
|
|
|
2025-11-12 17:59:37 +08:00
|
|
|
from core.plugin.impl.exc import PluginInvokeError
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TriggerProviderCredentialValidationError(ValueError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TriggerPluginInvokeError(PluginInvokeError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TriggerInvokeError(PluginInvokeError):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EventIgnoreError(TriggerInvokeError):
|
|
|
|
|
"""
|
|
|
|
|
Trigger event ignore error
|
|
|
|
|
"""
|