using AccountsDAL.DTO.Voucher; namespace AccountsBLL.Voucher { // Thrown when dbo.FNVOUCHERVALIDATE returns any row after a save/update — matches GB4's // special-cased catch, which returns SuccessDTO { Id = -1, ValidationBody = } instead of // rethrowing as a generic error. Carries the rows so the SL layer can surface them distinctly. public class VoucherEndValidationException : Exception { public List ValidationRows { get; } public VoucherEndValidationException(List validationRows) : base("Voucher End Validation Failed") { ValidationRows = validationRows; } } }