Error handling
Esta página aún no está disponible en tu idioma.
Error handling is important in any application, especially one which has a long lifetime of running.
Handling errors in command and event modules
To capture errors, enable the ‘error’ event in sern’s global event manager.
Directorysrc/
Directorycommands/
- …
Directoryevents/
- error.js
- index.js
- config.js
- dependencies.d.ts
If the error handler is not set, sern’s behavior is to crash the application. This respects node.js’s default behavior