@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
text/typescript
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';
}
}