Fix typo error in exceptions

Signed-off-by: shawn_hu_ls <huxiaowei3@huawei.com>
This commit is contained in:
shawn_hu_ls
2022-02-17 19:40:30 +08:00
parent 083690ab2a
commit 8983526d59
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ void ThrowIllegalAccessException(const PandaString &msg)
auto *thread = ManagedThread::GetCurrent();
auto ctx = GetLanguageContext(thread);
ThrowException(ctx, thread, ctx.GetIllegalArgumentExceptionClassDescriptor(), utf::CStringAsMutf8(msg.c_str()));
ThrowException(ctx, thread, ctx.GetIllegalAccessExceptionClassDescriptor(), utf::CStringAsMutf8(msg.c_str()));
}
void ThrowOutOfMemoryError(ManagedThread *thread, const PandaString &msg)