Skip to content

Commit 54d9a49

Browse files
committed
chore: readded removed file, needed for other exception
1 parent 3415a5b commit 54d9a49

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/repository.token.exception.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export class RepositoryTokenNotFoundException extends Error {
2+
constructor(classType: string) {
3+
super(
4+
`Repository token cannot be found for given classType [${classType}]`,
5+
);
6+
}
7+
}
8+
9+
export class RepositoryNotFoundException extends Error {
10+
constructor(token: Function | string) {
11+
super(`Repository cannot be found for given token [${token}]`);
12+
}
13+
}

0 commit comments

Comments
 (0)