federation/gateway/node_modules/apollo-graphql/lib/schema/GraphQLSchemaValidationError.js
2020-11-14 16:43:58 +01:00

13 lines
No EOL
506 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class GraphQLSchemaValidationError extends Error {
constructor(errors) {
super();
this.errors = errors;
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
this.message = errors.map(error => error.message).join("\n\n");
}
}
exports.GraphQLSchemaValidationError = GraphQLSchemaValidationError;
//# sourceMappingURL=GraphQLSchemaValidationError.js.map