18 lines
506 B
Python
18 lines
506 B
Python
class FirestorePersistenceException(Exception):
|
|
"""
|
|
Exception raised when Firestore operations fail.
|
|
|
|
This is typically caught and logged without failing the request.
|
|
"""
|
|
|
|
def __init__(self, message: str, cause: Exception | None = None):
|
|
"""
|
|
Initialize Firestore persistence exception.
|
|
|
|
Args:
|
|
message: Error message
|
|
cause: Original exception that caused this error
|
|
"""
|
|
super().__init__(message)
|
|
self.cause = cause
|