javascirpt: TypeError: CustomError is not a constructor

前端 未结 0 1428
眼角桃花
眼角桃花 2021-02-06 07:40

I am trying to create my own error class

error.js

class CustomError extends Error {
  constructor(message, data) {
    super(message);

    this.name = \'C         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题