Answers for "custom error nodejs"

0

custom error nodejs

class Testing extends Error {
  constructor(message) {
    super(message);
    this.name = this.constructor.name;
    this.message = message;
    Error.captureStackTrace(this, this.constructor);
  }
}
Posted by: Guest on July-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language