feat(domain): add domain exception hierarchy

- DomainException: Base exception for all domain errors
- ValidationException: Business rule validation failures
- AttachmentProcessingException: Attachment-specific processing errors

Exceptions maintain error code compatibility with legacy system.
This commit is contained in:
2026-07-07 18:58:59 +02:00
parent f6946d812a
commit 18bb07cd93
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
namespace DigitalData.EmailProfiler.Domain.Exceptions;
public class DomainException : Exception
{
public DomainException(string message) : base(message)
{
}
public DomainException(string message, Exception innerException) : base(message, innerException)
{
}
}