namespace {{ProjectName}}.Domain.Common; /// /// Domain exception for {{ProjectName}} business rule violations. /// Subclasses so the /// platform's exception middleware maps it to the standard error envelope. /// Message is a machine-readable error code (e.g. "task.title.required"). /// public sealed class DomainException : SmartStack.Domain.Exceptions.DomainException { public DomainException(string errorCode) : base(errorCode) { } public DomainException(string errorCode, Exception innerException) : base(errorCode, innerException) { } }