Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

middleware: add support for error converter func #173

Merged
merged 1 commit into from
Jun 17, 2021

Conversation

ethanpailes
Copy link
Contributor

This patch adds support for injecting a routine for
converting pggen errors to errors of a different sort.
It is already possible to intercept errors systemically
at the level of interactions with the database driver,
but pggen itself creates a few errors that cannot be
intercepted in this way (including the NotFoundError,
which is probably the most interesting sort of error
that pggen returns).

This patch adds support for injecting a routine for
converting pggen errors to errors of a different sort.
It is already possible to intercept errors systemically
at the level of interactions with the database driver,
but pggen itself creates a few errors that cannot be
intercepted in this way (including the NotFoundError,
which is probably the most interesting sort of error
that pggen returns).
@ethanpailes ethanpailes merged commit f4c5fd5 into master Jun 17, 2021
@ethanpailes ethanpailes deleted the add-error-converter-support-to-middleware branch June 17, 2021 13:20
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.

1 participant