protected void OnShowMessage(AGenValue sender, Exception e) { if (null != this.ShowMessage) { this.ShowMessage(sender, e); } }
public CFormatException(AGenValue decValue, string value) : base(string.Format("{0} is Format Error! ({1})", decValue.DispName, value)) { Value = decValue; InputStr = value; }
public CRangeErrorException(AGenValue value) : base(string.Format("{0} is Range Error! ({1} - {2})", value.DispName, value.Min, value.Max)) { Value = value; }