Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-9502

SpherePoint throws wrong exception for invalid arguments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Story Points:
      1
    • Epic Link:
    • Sprint:
      Alert Production S17 - 2
    • Team:
      Alert Production

      Description

      Several methods in SpherePoint throw pex::exceptions::OutOfRangeError when fed invalid arguments. Assuming the pex exceptions are intended to mimic the standard C++ exceptions of the same name (see DM-9435), this is inappropriate – OutOfRangeError should refer to invalid indices, not other cases where an argument falls outside some interval.

      These methods should be changed to throw either pex::exceptions::DomainError or pex::exceptions::InvalidParameterError, which apply to generic numerical arguments.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              krzys Krzysztof Findeisen
              Reporter:
              krzys Krzysztof Findeisen
              Reviewers:
              John Parejko
              Watchers:
              John Parejko, Krzysztof Findeisen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  CI Builds

                  No builds found.