Skip to content

feat: allow overriding and removing error handlers#226

Merged
jdesrosiers merged 1 commit intohyperjump-io:mainfrom
srivastava-diya:feat-error-handler
May 4, 2026
Merged

feat: allow overriding and removing error handlers#226
jdesrosiers merged 1 commit intohyperjump-io:mainfrom
srivastava-diya:feat-error-handler

Conversation

@srivastava-diya
Copy link
Copy Markdown
Contributor

Description

This PR introduces change that will allow users to override default error handlers and to remove or replace existing error handlers.
Closes : #225

Changes made

  • Introduced setErrorHandler(uri, handler) which registers error handlers by URI, allowing replacement by calling it again with the same URI.
  • Added removeErrorHandler(uri) for removal of a handler.
  • Error handler registry signature from an array to a object keyed by URI, consistent with normalizationHandlers.

Copy link
Copy Markdown
Collaborator

@jdesrosiers jdesrosiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@jdesrosiers jdesrosiers merged commit a04090e into hyperjump-io:main May 4, 2026
1 check passed
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.

Remove or replace an error handler

2 participants