Files
mail-intake/mail_intake/exceptions.py
2026-01-03 05:21:55 +05:30

20 lines
535 B
Python

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."""