//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public FabPropertyOutOfRangeFault(string pName, double pValue, string pMessage) : base(Code.PropertyOutOfRange, "") { Name = pName; Value = pValue; AppendMessage(FabPropertyValueFault.PropStr(pName, pValue) + pMessage); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public FabPropertyLengthFault(string pName, string pValue, bool pIsMin, int pChars) : base(Code.PropertyLengthFault, "") { Name = pName; Value = pValue; IsMin = pIsMin; Chars = pChars; AppendMessage(FabPropertyValueFault.PropStr(pName, pValue) + " cannot be " + (IsMin ? "less" : "more") + " than " + pChars + " characters."); }