@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.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
PothosError: function() {
return PothosError;
},
PothosSchemaError: function() {
return PothosSchemaError;
},
PothosValidationError: function() {
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