@pothos/core
Version:
Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript
42 lines (41 loc) • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: Object.getOwnPropertyDescriptor(all, name).get
});
}
_export(exports, {
get PothosError () {
return PothosError;
},
get PothosSchemaError () {
return PothosSchemaError;
},
get PothosValidationError () {
return PothosValidationError;
}
});
const _graphql = require("graphql");
class PothosError extends _graphql.GraphQLError {
constructor(message, options){
super(message, options);
this.name = 'PothosError';
}
}
class PothosSchemaError extends PothosError {
constructor(message, options){
super(message, options);
this.name = 'PothosSchemaError';
}
}
class PothosValidationError extends PothosError {
constructor(message, options){
super(message, options);
this.name = 'PothosValidationError';
}
}
//# sourceMappingURL=errors.js.map