Exemple #1
0
 ////////////////////////////////////////////////////////////////////////////////////////////////
 /*--------------------------------------------------------------------------------------------*/
 public FabPropertyOutOfRangeFault(string pName, double pValue, string pMessage) :
     base(Code.PropertyOutOfRange, "")
 {
     Name  = pName;
     Value = pValue;
     AppendMessage(FabPropertyValueFault.PropStr(pName, pValue) + pMessage);
 }
Exemple #2
0
 ////////////////////////////////////////////////////////////////////////////////////////////////
 /*--------------------------------------------------------------------------------------------*/
 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.");
 }