refactor: remove unused NamingStrategyNotFoundError (#11462)

This commit is contained in:
Mike Guida 2025-05-12 09:18:58 -06:00 committed by GitHub
parent 15de733e28
commit 39a6562a64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 19 deletions

View File

@ -1,18 +0,0 @@
import { TypeORMError } from "./TypeORMError"
/**
* Thrown when consumer tries to use naming strategy that does not exist.
*/
export class NamingStrategyNotFoundError extends TypeORMError {
constructor(strategyName: string | Function, connectionName: string) {
super()
const name =
typeof strategyName === "function"
? (strategyName as any).name
: strategyName
this.message =
`Naming strategy "${name}" was not found. Looks like this naming strategy does not ` +
`exist or it was not registered in current "${connectionName}" connection?`
}
}

View File

@ -40,7 +40,6 @@ export * from "./OptimisticLockCanNotBeUsedError"
export * from "./MetadataWithSuchNameAlreadyExistsError"
export * from "./DriverOptionNotSetError"
export * from "./FindRelationsNotFoundError"
export * from "./NamingStrategyNotFoundError"
export * from "./PessimisticLockTransactionRequiredError"
export * from "./RepositoryNotTreeError"
export * from "./DataTypeNotSupportedError"