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.
errors/AppError.js
| # 2017-10-01T14:14:44+00:00 | |
| 108.175.32.0/20 | |
| 108.175.34.0/24 | |
| 108.175.35.0/24 | |
| 192.173.64.0/18 | |
| 198.38.100.0/24 | |
| 198.38.101.0/24 | |
| 198.38.108.0/24 | |
| 198.38.109.0/24 |