Skip to content

Instantly share code, notes, and snippets.

View Nader-Sl's full-sized avatar
🏠
Working from home

Dev Ned Nader-Sl

🏠
Working from home
  • Remote Island
View GitHub Profile
import PromiseInsist from '..';
class GoodluckError extends Error {
constructor(msg: string, errorCode: number) {
super(msg);
this.errorCode = errorCode;
Object.setPrototypeOf(this, GoodluckError.prototype);
}
private errorCode: number;
public getErrorCode() {