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

Expose the customized API errors to plugins #2320

Closed
Aschen opened this issue Apr 11, 2022 · 0 comments
Closed

Expose the customized API errors to plugins #2320

Aschen opened this issue Apr 11, 2022 · 0 comments

Comments

@Aschen
Copy link
Contributor

Aschen commented Apr 11, 2022

Description

Customized errors has been introduced to application as a standard way to return API errors according with the business layer.

Plugins should be able to register their own errors with a predefined domain matching the plugin name.

Other change

It's not possible to throw an internal Kuzzle error from an application (e.g. throw app.errors.get('api', 'assert', 'invalid_type', 'string', 'date') see doc)

Kuzzle predefined errors should also be accessible to plugins and applications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants