Skip to content

Instantly share code, notes, and snippets.

View wickd's full-sized avatar

Maxim A. wickd

  • Avangarde Software
  • MD Chisinau
View GitHub Profile
@wickd
wickd / nodejs-custom-es6-errors.md
Created December 21, 2017 13:35 — forked from slavafomin/nodejs-custom-es6-errors.md
Custom ES6 errors in Node.js

Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.

I've tried to make it as lean and unobtrusive as possible.

Defining our own base class for errors

errors/AppError.js