# Business Rule Violations

Create a class to represent business rules that may be violated.

[Serializable]
public class BusinessRuleException : Exception
{
    public List<string> RuleDetails { get; set; }
    public BusinessRuleException(string message, List<string> reasons)
        : base(message)
    {
        this.RuleDetails = reasons;
    }
}
Last Updated: 1/3/2019, 4:06:28 PM