"""
Custom exceptions for the LangChain MemVid package.
"""
[docs]
class MemVidError(Exception):
"""Base exception class for all LangChain MemVid-related errors."""
[docs]
class EncodingError(MemVidError):
"""Raised when there is an error during the encoding process."""
[docs]
class RetrievalError(MemVidError):
"""Raised when there is an error during the retrieval process."""
[docs]
class MemVidIndexError(MemVidError):
"""Raised when there is an error with the index operations."""
[docs]
class VideoProcessingError(MemVidError):
"""Raised when there is an error during video processing."""
[docs]
class QRCodeError(MemVidError):
"""Raised when there is an error with QR code generation or decoding."""