[Quantproject-developers] QuantProject/b4_Business/a2_Strategies/TickersRelationships MissingCorre
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2008-01-30 23:12:54
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/TickersRelationships In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5267 Added Files: MissingCorrelationException.cs Log Message: MissingCorrelationException has been added --- NEW FILE: MissingCorrelationException.cs --- /* QuantProject - Quantitative Finance Library MissingCorrelationException.cs Copyright (C) 2008 Marco Milletti This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ using System; namespace QuantProject.Business.Strategies.TickersRelationships { /// <summary> /// Thrown when a correlation is requested for two given tickers, /// but it has not be computed by the CorrelationProvider /// </summary> public class MissingCorrelationException : Exception { private string firstTicker; private string secondTicker; public override string Message { get { return "Missing correlation for tickers: " + this.firstTicker + " , " + this.secondTicker; } } public MissingCorrelationException( string firstTicker , string secondTicker ) { this.firstTicker = firstTicker; this.secondTicker = secondTicker; } } } |