Node.js - Error Handling Patterns
What is the main issue with this custom error class definition?
class NetworkError extends Error { constructor(message) { this.message = message; this.name = 'NetworkError'; } }