import { TypeORMError } from "./TypeORMError";
/**
 * Thrown if custom repositories that extend AbstractRepository classes does not have managed entity.
 */
export class CustomRepositoryDoesNotHaveEntityError extends TypeORMError {
    constructor(repository) {
        super(`Custom repository ${repository instanceof Function ? repository.name : repository.constructor.name} does not have managed entity. ` +
            `Did you forget to specify entity for it @EntityRepository(MyEntity)? `);
    }
}

//# sourceMappingURL=CustomRepositoryDoesNotHaveEntityError.js.map
