본문 바로가기
TroubleShooting

Error: 를 어떻게 [ERROR] 로?

by ウリ김영은 2023. 10. 22.

 

 

class MyError extends Error {
  constructor( ...params) {
    super(...params);
    this.message = [...params];
    this.name = '[ERROR]';
  }
}

 

 

 

 

 

 

 


참조

https://helloworldjavascript.net/pages/290-exception.html