@merkur/plugin-error
v0.36.0
Published
Merkur plugin for error handling.
Downloads
60
Readme
Merkur - plugin-error
merkur/plugin-error
adds semi-automatic error handling to your Merkur widget:
- Return a custom HTTP status based on thrown error
- Render valid JSON with error code and message
- Render an error page
- Run arbitrary code on error (e.g. to log/report the error)
- Catch unhandled promise errors
Full documentation for @merkur/plugin-error.
About Merkur
The Merkur is tiny extensible javascript library for front-end microservices(micro frontends). It allows by default server side rendering for loading performance boost. You can connect it with other frameworks or languages because merkur defines easy API. You can use one of six predefined template's library Preact, µhtml, Svelte and vanilla but you can easily extend for others.