-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: 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