Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-305

Convert readPreferenceError to invalid argument or logic errors

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently we throw readPreferenceErrors whenever something related to readPreferences has a problem. We should be more specific and instead throw errors that detail immediately what is wrong.

      e.g.
      an out of range maxStalenessSeconds is an invalidArgumentError
      setting tagSets when the mode is primary is a logicError

        Attachments

          Activity

            People

            • Assignee:
              patrick.freed Patrick Freed
              Reporter:
              patrick.freed Patrick Freed
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: