UNPKG

@nestjs/graphql

Version:

Nest - modern, fast, powerful node.js web framework (@graphql)

9 lines (8 loc) 477 B
export class InterfaceNotRegisteredError extends Error { constructor(hostTypeName, interfaceRef) { const interfaceName = (interfaceRef && interfaceRef.name) || String(interfaceRef); super(`"${hostTypeName}" lists "${interfaceName}" in its "implements" option, but ` + `"${interfaceName}" is not registered as an @InterfaceType(). ` + `Make sure every class referenced from "implements" is decorated with @InterfaceType().`); } }