Beispiel #1
0
 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());
 }
Beispiel #2
0
 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());
 }