Creating custom exception classes (node.js)