Changeset 2152


Ignore:
Timestamp:
5/16/2010 12:31:18 PM (4 years ago)
Author:
lowjoel
Message:

Some parameter validation in ProgressManagerStep?'s constructor

Location:
trunk/eraser/Eraser.Util
Files:
6 edited

Legend:

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

    r1972 r2152  
    647647        public SteppedProgressManagerStep(ProgressManagerBase progress, float weight, string name) 
    648648        { 
     649            if (float.IsInfinity(weight) || float.IsNaN(weight)) 
     650                throw new ArgumentException(S._("The weight of a progress manager step must be " + 
     651                    "a valid floatint-point value.")); 
     652 
    649653            Progress = progress; 
    650654            Weight = weight; 
  • trunk/eraser/Eraser.Util/Strings.en.resx

    r1999 r2152  
    148148    <value>Session ended</value> 
    149149  </data> 
     150  <data name="The weight of a progress manager step must be a valid floatint-point value." xml:space="preserve"> 
     151    <value>(Untranslated)</value> 
     152  </data> 
    150153  <data name="Could not load file icon from {0}" xml:space="preserve"> 
    151154    <value>Could not load file icon from {0}</value> 
  • trunk/eraser/Eraser.Util/Strings.it.resx

    r1999 r2152  
    148148    <value>(Untranslated)</value> 
    149149  </data> 
     150  <data name="The weight of a progress manager step must be a valid floatint-point value." xml:space="preserve"> 
     151    <value>(Untranslated)</value> 
     152  </data> 
    150153  <data name="Could not load file icon from {0}" xml:space="preserve"> 
    151154    <value>(Untranslated)</value> 
  • trunk/eraser/Eraser.Util/Strings.nl.resx

    r1999 r2152  
    148148    <value>(Untranslated)</value> 
    149149  </data> 
     150  <data name="The weight of a progress manager step must be a valid floatint-point value." xml:space="preserve"> 
     151    <value>(Untranslated)</value> 
     152  </data> 
    150153  <data name="Could not load file icon from {0}" xml:space="preserve"> 
    151154    <value>(Untranslated)</value> 
  • trunk/eraser/Eraser.Util/Strings.pl.resx

    r1999 r2152  
    148148    <value>(Untranslated)</value> 
    149149  </data> 
     150  <data name="The weight of a progress manager step must be a valid floatint-point value." xml:space="preserve"> 
     151    <value>(Untranslated)</value> 
     152  </data> 
    150153  <data name="Could not load file icon from {0}" xml:space="preserve"> 
    151154    <value>(Untranslated)</value> 
  • trunk/eraser/Eraser.Util/Strings.resx

    r1999 r2152  
    148148    <value>Session ended</value> 
    149149  </data> 
     150  <data name="The weight of a progress manager step must be a valid floatint-point value." xml:space="preserve"> 
     151    <value>The weight of a progress manager step must be a valid floatint-point value.</value> 
     152  </data> 
    150153  <data name="Could not load file icon from {0}" xml:space="preserve"> 
    151154    <value>Could not load file icon from {0}</value> 
Note: See TracChangeset for help on using the changeset viewer.