mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
refactor: remove unused NamingStrategyNotFoundError (#11462)
This commit is contained in:
parent
15de733e28
commit
39a6562a64
@ -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?`
|
||||
}
|
||||
}
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user