lmi-commits
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]