UNPKG

@pothos/core

Version:

Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript

21 lines (20 loc) 585 B
import { GraphQLError } from 'graphql'; export class PothosError extends GraphQLError { constructor(message, options) { super(message, options); this.name = "PothosError"; } } export class PothosSchemaError extends PothosError { constructor(message, options) { super(message, options); this.name = "PothosSchemaError"; } } export class PothosValidationError extends PothosError { constructor(message, options) { super(message, options); this.name = "PothosValidationError"; } } //# sourceMappingURL=errors.js.map