Skip to content

Conversation

@lindyhopchris
Copy link
Member

Previously the error interfaces were type-hinting BackedEnum which meant you couldn't use a regular UnitEnum for error codes. This has now been fixed.

Also added some new features:

  1. Added code() method to the ListOfErrors interface so that you can get a single error code from the list.
  2. Error objects now allow the key to be an enum or string, previously only strings were supported.
  3. Updates to the KeyedSetOfErrors to handle enum keys.

@lindyhopchris lindyhopchris self-assigned this May 24, 2025
@lindyhopchris lindyhopchris merged commit a51f0e4 into next May 24, 2025
3 checks passed
@lindyhopchris lindyhopchris deleted the feature/error-enums branch May 24, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants