Skip to content

Conversation

@Jeehut
Copy link
Member

@Jeehut Jeehut commented May 3, 2025

Fixes #27.

Proposed Changes

  • This adds a new ErrorMapper protocol, which also is now used by the custom mapping extensions.
  • A new function ErrorKit.registerMapper(_:) is used to register custom mappers, such as for 3rd-party libs.
  • The documentation was appropriately updated to mention custom error mapping capabilities.

@Jeehut Jeehut merged commit 2c1aa89 into main May 3, 2025
1 check passed
@Jeehut Jeehut deleted the wip/error-mapper branch May 3, 2025 06:14
@Jeehut Jeehut mentioned this pull request May 3, 2025
@Sherlouk
Copy link

Sherlouk commented May 3, 2025

this is perfect.

@Jeehut
Copy link
Member Author

Jeehut commented May 3, 2025

@Sherlouk Thanks for the idea! This just made a lot of sense. 💯

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.

Add custom error mapping

3 participants