[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 30412af 04/24: Report a range error when a ra
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 30412af 04/24: Report a range error when a range error is caught [336] |
Date: |
Wed, 30 Dec 2020 18:46:56 -0500 (EST) |
branch: master
commit 30412af5e2ff811b44d7e50938a3a2eaf4137e89
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Report a range error when a range error is caught [336]
Greater specificity is neither practicable nor useful, but confounding
one exception with another is ill advised. See the preceding commit
message for the original rationale.
---
ihs_server7702.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ihs_server7702.cpp b/ihs_server7702.cpp
index e1ce60a..07e6330 100644
--- a/ihs_server7702.cpp
+++ b/ihs_server7702.cpp
@@ -43,7 +43,8 @@ enum
,adjustable_event_forbidden_at_issue = 0x0010
,guideline_negative = 0x0020
,misstatement_of_age_or_gender = 0x0040
- ,runtime_error = 0x0080
+ ,range_error = 0x0080
+ ,runtime_error = 0x0100
};
//============================================================================
@@ -132,7 +133,7 @@ void Server7702::Process()
}
catch(std::range_error const& e)
{
- Output.Status |= implausible_input; // TODO ?? can we be more specific?
+ Output.Status |= range_error;
warning() << Output.ContractNumber << " error: " << e.what() <<
LMI_FLUSH;
}
catch(std::runtime_error const& e)
- [lmi-commits] [lmi] master updated (00ac0ed -> e1047b3), Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 7efa493 05/24: Resolve some marked defects [333], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master c9da0f6 07/24: Assert "length" is same in two classes, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master ac2e25b 03/24: Expunge an unwanted exception class, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master f2efed6 01/24: Guard against accidental Ctrl-D, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master bf59b33 06/24: Resolve or demote some more marked defects [326], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 30412af 04/24: Report a range error when a range error is caught [336],
Greg Chicares <=
- [lmi-commits] [lmi] master e7c9da0 08/24: Prepare to move a block of code, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 55a3eb0 12/24: Note an apparent defect [327], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 53e98ab 13/24: Fix defect introduced 20100723T2339Z: wrong jurisdiction [326], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master e4c790a 18/24: Expunge a defect marker [324], Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d89a676 22/24: Refactor to avoid a header-only implementation, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 3121c90 23/24: Conditionally use H.R. 6800's 7702 transitional rates, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 3ee0c70 15/24: Make two member functions identical, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d7f3337 09/24: Move a block of code as just announced, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master d4e0291 10/24: Refactor, Greg Chicares, 2020/12/30
- [lmi-commits] [lmi] master 71d750e 14/24: Make two member functions almost identical, Greg Chicares, 2020/12/30