public OverBudgetException(LocalizedString errorMessage, IBudget budget, string policyPart, string policyValue, int backoffTime) : base(errorMessage) { if (budget == null) { throw new ArgumentNullException("budget"); } this.Initialize(budget.Owner, budget.ThrottlingPolicy, policyPart, policyValue, backoffTime, budget.ToString()); }
public OverBudgetException(IBudget budget, string policyPart, string policyValue, int backoffTime) : base(DirectoryStrings.ExceptionOverBudget(policyPart, policyValue, budget.Owner.BudgetType, backoffTime)) { if (budget == null) { throw new ArgumentNullException("budget"); } this.Initialize(budget.Owner, budget.ThrottlingPolicy, policyPart, policyValue, backoffTime, budget.ToString()); }