UNPKG

type-graphql

Version:

Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

11 lines (10 loc) 459 B
export class GeneratingSchemaError extends Error { constructor(details) { let errorMessage = "Some errors occurred while generating GraphQL schema:\n"; errorMessage += details.map(it => ` ${it.message}\n`); errorMessage += "Please check the `details` property of the error to get more detailed info."; super(errorMessage); Object.setPrototypeOf(this, new.target.prototype); this.details = details; } }