[Quantproject-developers] QuantProject/b3_Data/DataProviders/Bars/Caching SimpleBarCache.cs, 1.2,
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2009-02-08 19:12:22
|
Update of /cvsroot/quantproject/QuantProject/b3_Data/DataProviders/Bars/Caching In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22703/b3_Data/DataProviders/Bars/Caching Modified Files: SimpleBarCache.cs Log Message: Catch block has been written in a more simple way Index: SimpleBarCache.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b3_Data/DataProviders/Bars/Caching/SimpleBarCache.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SimpleBarCache.cs 8 Feb 2009 16:45:56 -0000 1.2 --- SimpleBarCache.cs 8 Feb 2009 19:12:17 -0000 1.3 *************** *** 54,64 **** QuantProject.DataAccess.Tables.Bars.GetOpen( ticker , dateTime , this.intervalFrameInSeconds ); } ! catch( Exception ex ) { ! if( ex.GetType() == Type.GetType("QuantProject.DataAccess.EmptyQueryException") ) ! throw new MissingBarException( ! ticker , dateTime , this.intervalFrameInSeconds); ! else ! throw ex; } return returnValue; --- 54,61 ---- QuantProject.DataAccess.Tables.Bars.GetOpen( ticker , dateTime , this.intervalFrameInSeconds ); } ! catch( EmptyQueryException ex ) { ! string notUsed = ex.ToString(); ! throw new MissingBarException(ticker , dateTime , this.intervalFrameInSeconds); } return returnValue; |