This commit is contained in:
2026-01-03 05:21:55 +05:30
parent 278f0a3d40
commit 412a9c7bec
22 changed files with 950 additions and 0 deletions

19
mail_intake/exceptions.py Normal file
View File

@@ -0,0 +1,19 @@
class MailIntakeError(Exception):
"""
Base exception for all mail-intake errors.
Users of the library should catch this type (or subclasses)
instead of provider-specific or third-party exceptions.
"""
class MailIntakeAuthError(MailIntakeError):
"""Authentication and credential-related failures."""
class MailIntakeAdapterError(MailIntakeError):
"""Errors raised by mail provider adapters."""
class MailIntakeParsingError(MailIntakeError):
"""Errors encountered while parsing message content."""