Changeset 2307


Ignore:
Timestamp:
09/01/11 02:02:50 (3 years ago)
Author:
lowjoel
Message:

Sanity check for Progress Manager - Total should not be set below 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Util/ProgressManager.cs

    r2202 r2307  
    203203                        "of the Progress Manager must be greater than or equal to the completed " + 
    204204                        "work units for the task."); 
     205                if (value < 0) 
     206                    throw new ArgumentOutOfRangeException("value", value, "The Total property " + 
     207                        "of the Progress Manager must be a positive integer"); 
    205208 
    206209                total = value; 
Note: See TracChangeset for help on using the changeset viewer.