supermemory/packages/livekit-sdk-python/src/supermemory_livekit/exceptions.py
Dhravya Shah b36b225375
feat(livekit): add persistent memory for LiveKit Agents (#1702)
Co-authored-by: Ishaan Gupta <ishaankone@gmail.com>
2026-10-01 15:26:35 -07:00

19 lines
615 B
Python

"""Errors raised while configuring the LiveKit integration."""
from typing import Optional
class SupermemoryLiveKitError(Exception):
def __init__(self, message: str, original_error: Optional[Exception] = None):
super().__init__(message)
self.message = message
self.original_error = original_error
def __str__(self) -> str:
if self.original_error:
return f"{self.message}: {self.original_error}"
return self.message
class ConfigurationError(SupermemoryLiveKitError):
"""Raised when the integration cannot start, for example a missing API key."""