I\'m trying to throw a custom error with my \"CustomError\" class name printed in the console instead of \"Error\", with no success:
class CustomError extend
Try this...
class CustomError extends Error { constructor(message: string) { super(`Lorem "${message}" ipsum dolor.`) } get name() { return this.constructor.name } } throw new CustomError('foo')