Skip to content

Commit d241cb5

Browse files
author
David Fahlander
committed
Resolve / clarify #2161
1 parent d02920b commit d241cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/entity/Entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { exceptions } from "../../errors";
22

33
export function Entity(){
4-
throw exceptions.Type();
4+
throw exceptions.Type(`Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.`);
55
}

0 commit comments

Comments
 (0)