Node.js - Error Handling Patterns
What is wrong with this custom error class?
class MyError extends Error { constructor() { super(); this.name = 'MyError'; } } When throwing new MyError('fail'), what happens?