[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] valyuta/004 3c157f7 03/17: Report a range error when
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] valyuta/004 3c157f7 03/17: Report a range error when a range error is caught [336] |
Date: |
Thu, 24 Dec 2020 10:23:50 -0500 (EST) |
branch: valyuta/004
commit 3c157f7d3856bdbb7eb7f2690ddac8f00190bfa4
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] valyuta/004 updated (7192b10 -> cf62b44), Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 3c157f7 03/17: Report a range error when a range error is caught [336],
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/004 2504286 04/17: Resolve some marked defects [333], Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 eeacb20 07/17: Prepare to move a block of code, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 f16fd3a 02/17: Expunge an unwanted exception class, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 5ceb54d 01/17: Move an enum, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 5ac107f 09/17: Refactor, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 c9b4787 13/17: Make two member functions almost identical, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 cf62b44 17/17: Record timings, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 9d9c2b7 06/17: Assert "length" is same in two classes, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 67f1c54 08/17: Move a block of code as just announced, Greg Chicares, 2020/12/24
- [lmi-commits] [lmi] valyuta/004 80a18db 14/17: Make two member functions identical, Greg Chicares, 2020/12/24