We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d02920b commit d241cb5Copy full SHA for d241cb5
src/classes/entity/Entity.ts
@@ -1,5 +1,5 @@
1
import { exceptions } from "../../errors";
2
3
export function Entity(){
4
- throw exceptions.Type();
+ throw exceptions.Type(`Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.`);
5
}
0 commit comments