UNPKG

@pothos/core

Version:

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

23 lines (19 loc) 633 B
import { GraphQLError, type GraphQLErrorOptions } from 'graphql'; export class PothosError extends GraphQLError { constructor(message: string, options?: GraphQLErrorOptions) { super(message, options); this.name = 'PothosError'; } } export class PothosSchemaError extends PothosError { constructor(message: string, options?: GraphQLErrorOptions) { super(message, options); this.name = 'PothosSchemaError'; } } export class PothosValidationError extends PothosError { constructor(message: string, options?: GraphQLErrorOptions) { super(message, options); this.name = 'PothosValidationError'; } }