add PermissionError

This commit is contained in:
blueloveTH 2026-08-05 23:31:22 +08:00
parent 71f06c4ff1
commit 5546291c91
2 changed files with 2 additions and 0 deletions

View File

@ -864,6 +864,7 @@ enum py_PredefinedType {
tp_SyntaxError,
tp_RecursionError,
tp_OSError,
tp_PermissionError,
tp_NotImplementedError,
tp_TypeError,
tp_IndexError,

View File

@ -195,6 +195,7 @@ void VM__ctor(VM* self) {
INJECT_BUILTIN_EXC(SyntaxError, tp_Exception);
INJECT_BUILTIN_EXC(RecursionError, tp_Exception);
INJECT_BUILTIN_EXC(OSError, tp_Exception);
INJECT_BUILTIN_EXC(PermissionError, tp_OSError);
INJECT_BUILTIN_EXC(NotImplementedError, tp_Exception);
INJECT_BUILTIN_EXC(TypeError, tp_Exception);
INJECT_BUILTIN_EXC(IndexError, tp_Exception);