@supernovaio/cli
Version:
Supernova.io Command Line Interface
17 lines (15 loc) • 799 B
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c359bb46-9233-5028-9291-8c705c29f580")}catch(e){}}();
export class NotAuthorizedError extends Error {
code;
constructor(message = "Not authorized. Login first, please.", code = "NOT_AUTHORIZED") {
super(message);
this.name = "NotAuthorizedError";
this.code = code;
Object.setPrototypeOf(this, new.target.prototype);
}
getFormattedMessage() {
return `[${this.code}] ${this.message}`;
}
}
//# sourceMappingURL=not-authorized.error.js.map
//# debugId=c359bb46-9233-5028-9291-8c705c29f580