Similarity_Search / src /api /exceptions.py
amaye15
Debug - DatasetDeleteError
f844490
raw
history blame contribute delete
879 Bytes
class DatabaseError(Exception):
"""Base exception for database errors."""
pass
class QueryExecutionError(DatabaseError):
"""Exception raised when a database query fails."""
pass
class EmbeddingError(Exception):
"""Base exception for embedding-related errors."""
pass
class OpenAIError(EmbeddingError):
"""Exception raised when OpenAI API fails."""
pass
class HuggingFaceError(Exception):
"""Base exception for Hugging Face-related errors."""
pass
class DatasetNotFoundError(HuggingFaceError):
"""Exception raised when a dataset is not found."""
pass
class DatasetPushError(HuggingFaceError):
"""Exception raised when pushing a dataset to Hugging Face Hub fails."""
pass
class DatasetDeleteError(HuggingFaceError):
"""Exception raised when deleting a dataset on Hugging Face Hub fails."""
pass