type-graphql
Version:
Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
11 lines (10 loc) • 370 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnauthorizedError = void 0;
class UnauthorizedError extends Error {
constructor() {
super("Access denied! You need to be authorized to perform this action!");
Object.setPrototypeOf(this, new.target.prototype);
}
}
exports.UnauthorizedError = UnauthorizedError;