namespace DocumentOperator.Domain.Common.Exceptions; /// /// Exception thrown when domain validation fails (e.g., invalid Value Objects). /// Maps to HTTP 400 Bad Request in the API layer. /// public class DomainValidationException : DomainException { public string PropertyName { get; } public DomainValidationException(string message) : base(message, "DOMAIN_VALIDATION_ERROR") { PropertyName = string.Empty; } public DomainValidationException(string propertyName, string message) : base(message, "DOMAIN_VALIDATION_ERROR") { PropertyName = propertyName; } public DomainValidationException(string message, Exception innerException) : base(message, "DOMAIN_VALIDATION_ERROR", innerException) { PropertyName = string.Empty; } }