This commit is contained in:
Andre Wagner
2026-04-29 16:46:05 -05:00
parent 3d4ce8cd15
commit 8720bd1cd9
3 changed files with 27 additions and 1 deletions

View File

@@ -24,6 +24,13 @@ public:
explicit VMStackOutOfRange() : VMRuntimeError("Item does not exist in stack") {}
};
class VMTypeError : public VMRuntimeError
{
public:
explicit VMTypeError(Type expected, Type found) : VMRuntimeError("Type error") {} // TODO - print types
};
}
#endif //TYCHE_VM_EXCEPTIONS_HH