Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/17/14 12:32:03 (11 years ago)
Author:
mkommend
Message:

#2135: Adapted error message in PercentValue.

File:
1 edited

Legend:

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

    r10327 r10352  
    3939      set {
    4040        if (restrictToUnitInterval && (value < 0 || value > 1))
    41           throw new ArgumentException(string.Format("The provided value {0} lies not in the interval [0,1].", value));
     41          throw new ArgumentException("The provided 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(string.Format("The provided value {0} lies not in the interval [0,1].", value));
     59        throw new ArgumentException("The provided 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 = "Value must lie in the interval [0,1].";
     78        errorMessage = "The provided value must lie in the interval [0,1].";
    7979        return false;
    8080      }
Note: See TracChangeset for help on using the changeset viewer.