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
Node.js is just JavaScript running on the server side. That's it. That's all there is to it.
| -nosplash | |
| --launcher.defaultAction | |
| openFile | |
| -vm | |
| C:/JDK7/jre/bin/server/jvm.dll #Windows | |
| #/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java #OS X | |
| -vmargs | |
| -Xincgc | |
| -Xss1m | |
| -Duser.name=FirstName LastName |