[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [5931] Restrict an old exception class to obsolescent code
From: |
Greg Chicares |
Subject: |
[lmi-commits] [5931] Restrict an old exception class to obsolescent code |
Date: |
Fri, 18 Jul 2014 21:44:43 +0000 |
Revision: 5931
http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5931
Author: chicares
Date: 2014-07-18 21:44:35 +0000 (Fri, 18 Jul 2014)
Log Message:
-----------
Restrict an old exception class to obsolescent code
Modified Paths:
--------------
lmi/trunk/ihs_basicval.cpp
Modified: lmi/trunk/ihs_basicval.cpp
===================================================================
--- lmi/trunk/ihs_basicval.cpp 2014-07-11 23:56:34 UTC (rev 5930)
+++ lmi/trunk/ihs_basicval.cpp 2014-07-18 21:44:35 UTC (rev 5931)
@@ -43,7 +43,6 @@
#include "ieee754.hpp" // ldbl_eps_plus_one()
#include "ihs_irc7702.hpp"
#include "ihs_irc7702a.hpp"
-#include "ihs_x_type.hpp"
#include "input.hpp"
#include "interest_rates.hpp"
#include "loads.hpp"
@@ -210,17 +209,25 @@
if(IssueAge < Database_->Query(DB_MinIssAge))
{
- throw x_product_rule_violated
- (
- std::string("Issue age less than minimum")
- );
+ fatal_error()
+ << "Issue age "
+ << IssueAge
+ << " less than minimum "
+ << Database_->Query(DB_MinIssAge)
+ << '.'
+ << LMI_FLUSH
+ ;
}
if(Database_->Query(DB_MaxIssAge) < IssueAge)
{
- throw x_product_rule_violated
- (
- std::string("Issue age greater than maximum")
- );
+ fatal_error()
+ << "Issue age "
+ << IssueAge
+ << " greater than maximum "
+ << Database_->Query(DB_MaxIssAge)
+ << '.'
+ << LMI_FLUSH
+ ;
}
FundData_.reset(new
FundData(AddDataDir(ProductData_->datum("FundFilename"))));
RoundingRules_.reset
@@ -264,6 +271,7 @@
}
//============================================================================
+#include "ihs_x_type.hpp" // x_product_rule_violated TAXATION !! remove later
// TODO ?? Not for general use--use for GPT server only, for now. TAXATION !!
refactor later
void BasicValues::GPTServerInit()
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [5931] Restrict an old exception class to obsolescent code,
Greg Chicares <=