GraphQLSchemaValidationError.js 555 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.GraphQLSchemaValidationError = void 0;
  4. class GraphQLSchemaValidationError extends Error {
  5. constructor(errors) {
  6. super();
  7. this.errors = errors;
  8. this.name = this.constructor.name;
  9. Error.captureStackTrace(this, this.constructor);
  10. this.message = errors.map((error) => error.message).join("\n\n");
  11. }
  12. }
  13. exports.GraphQLSchemaValidationError = GraphQLSchemaValidationError;
  14. //# sourceMappingURL=GraphQLSchemaValidationError.js.map