Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10405 for branches


Ignore:
Timestamp:
01/28/14 10:55:09 (11 years ago)
Author:
mkommend
Message:

#2135: Changed exception message in PercentValue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2135-PercentValue/3.3/PercentValue.cs

    r10352 r10405  
    3939      set {
    4040        if (restrictToUnitInterval && (value < 0 || value > 1))
    41           throw new ArgumentException("The provided value must lie in the interval [0,1].");
     41          throw new ArgumentException("Value must lie in the interval [0,1].");
    4242        base.Value = value;
    4343      }
     
    5757      this.restrictToUnitInterval = restrictToUnitInterval;
    5858      if (restrictToUnitInterval && (value < 0 || value > 1))
    59         throw new ArgumentException("The provided value must lie in the interval [0,1].");
     59        throw new ArgumentException("Value must lie in the interval [0,1].");
    6060      this.value = value;
    6161    }
     
    7676      double val = double.Parse(value);
    7777      if (val < 0 || val > 1) {
    78         errorMessage = "The provided value must lie in the interval [0,1].";
     78        errorMessage = "Value must lie in the interval [0,1].";
    7979        return false;
    8080      }
Note: See TracChangeset for help on using the changeset viewer.