UNPKG

graplix

Version:

Authorization framework for implementing Relation-based Access Control (ReBAC) with the Resolver (Inspired by [GraphQL](https://graphql.org))

12 lines (9 loc) 240 B
enum ErrorCode { UNIMPLEMENTED = "UNIMPLEMENTED", } export class UnimplementedError extends Error { code: ErrorCode = ErrorCode.UNIMPLEMENTED; constructor(featureName: string) { super(`${featureName} is not implemented`); } }