Spaces:
Sleeping
Sleeping
File size: 1,085 Bytes
2197ab7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
"""Custom exceptions for the fabric-to-espanso application."""
class FabricToEspansoError(Exception):
"""Base exception for all fabric-to-espanso errors."""
pass
class DatabaseError(FabricToEspansoError):
"""Base exception for database-related errors."""
pass
class DatabaseConnectionError(DatabaseError):
"""Raised when unable to connect to the database."""
pass
class DatabaseInitializationError(DatabaseError):
"""Raised when database initialization fails."""
pass
class CollectionError(DatabaseError):
"""Raised when there's an error with collection operations."""
pass
class ConfigurationError(FabricToEspansoError):
"""Raised when there's an error in the configuration."""
pass
class NotImplementedError(FabricToEspansoError):
"""Raised when a feature is not implemented."""
pass
class ParsingError(FabricToEspansoError):
"""Raised when there's an error parsing markdown files."""
pass
class ProcessingError(FabricToEspansoError):
"""Raised when there's an error processing the input files."""
pass |