/// <summary> /// This method displays a user-readable error message for the given /// aggregation result. Note that this method should only be called in the /// case of an error and only on behalf of a user-interactive application. /// </summary> /// <param name="Result" type="Itron.Metering.Datafiles.AggregratedProfileData.AggregationResult"> /// </param> /// <remarks> /// Revision History /// MM/DD/YY Who Version Issue# Description /// -------- --- ------- ------------- ----------------------------------- /// 08/26/08 MAH 9.50 Created /// </remarks> public static String TranslateAggregationError(AggregationResult Result) { String strResult = ""; switch (Result) { case AggregratedProfileData.AggregationResult.DeviceIDMismatch: strResult = "Unit IDs do not match"; break; case AggregratedProfileData.AggregationResult.DSTMismatch: strResult = "DST settings do not match"; break; case AggregratedProfileData.AggregationResult.IntervalLengthMismatch: strResult = "Interval lengths do not match"; break; case AggregratedProfileData.AggregationResult.NoContributors: strResult = "Some contributors do not contain load profile data"; break; case AggregratedProfileData.AggregationResult.QuantityMismatch: strResult = "Load profile channel quantities do not match"; break; case AggregratedProfileData.AggregationResult.ChannelMismatch: strResult = "All contributors do not contain the same number of load profile channels"; break; default: strResult = Result.ToString(); break; } return(strResult); }