custom exceptions working in node