Make all name properties on Errors readonly

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.0.0
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      It is desirable to check an Error's type by inspecting the name property of the error. We should make all the name properties getters only, to ensure it can't be changed after creation.

      Dependencies

      • All the errors defined in 4.0

      Unknowns

      • Will typescript be mad about subclasses returning a different type? (If we use the name as the return type vs general string)

      Acceptance Criteria

      Implementation Requirements
      • get name() on each error class
      Testing Requirements
      • A test to assert the names are what we expect should serve here to prevent regression and check readonly behavior.
      Documentation Requirements
      • None
      Follow Up Requirements
      • None

              Assignee:
              Andy Mina
              Reporter:
              Neal Beeken
              Neal Beeken
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: