[Quantproject-developers] QuantProject/b3_Data/DataProviders/Caching MissingQuoteException.cs,1.1,1.
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2005-10-15 18:10:31
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/DataProviders/Caching In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16411/b3_Data/DataProviders/Caching Modified Files: MissingQuoteException.cs Log Message: The Message property has been overridden to provide a more informative error message Index: MissingQuoteException.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b3_Data/DataProviders/Caching/MissingQuoteException.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MissingQuoteException.cs 30 May 2005 18:35:03 -0000 1.1 --- MissingQuoteException.cs 15 Oct 2005 18:10:24 -0000 1.2 *************** *** 30,38 **** public class MissingQuoteException : Exception { public MissingQuoteException( string ticker , DateTime dateTime ) { ! // ! // TODO: Add constructor logic here ! // } } --- 30,47 ---- public class MissingQuoteException : Exception { + private string ticker; + private DateTime dateTime; + public override string Message + { + get + { + return "Missing quote for ticker " + + this.ticker + " for date " + this.dateTime.ToString(); + } + } public MissingQuoteException( string ticker , DateTime dateTime ) { ! this.ticker = ticker; ! this.dateTime = dateTime; } } |