0.0.2 • Published 7 years ago

node-errorcatcher v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

errorcatcher

Top-level error handling for NodeJS

  • Automatically catches missed errors.
  • "Prettifies" all error outputs.
  • Used via a simple 'include' and run (operates via side effects):

    import { GlobalNodeErrorHandlersSetup } from 'errorcatcher'; GlobalNodeErrorHandlersSetup(); // All errors thrown in the app will now display as clean "PrettyErrors"

prettyErrorFactory

  • prettyErrorFactory allows creation of your own PrettyError objects whenever needed.

    import { prettyErrorFactory } from 'errorcatcher';

  • (You probably won't need it)