From abadf90d4a63af63b8c0dd1bf3c7788d15d78fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=98=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD?= Date: Fri, 16 Aug 2024 09:23:25 +0200 Subject: [PATCH] fix: switch to non critical exception for most cases in network handler --- .../GameStructs/NetworkHandlerWrapper.cpp | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/L2BotDll/Versions/Interlude/GameStructs/NetworkHandlerWrapper.cpp b/L2BotDll/Versions/Interlude/GameStructs/NetworkHandlerWrapper.cpp index 7086860..7a66085 100644 --- a/L2BotDll/Versions/Interlude/GameStructs/NetworkHandlerWrapper.cpp +++ b/L2BotDll/Versions/Interlude/GameStructs/NetworkHandlerWrapper.cpp @@ -52,7 +52,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::GetNextCreature failed"); + throw RuntimeException(L"UNetworkHandler::GetNextCreature failed"); } } @@ -83,7 +83,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::GetUser failed"); + throw RuntimeException(L"UNetworkHandler::GetUser failed"); } } @@ -97,7 +97,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::GetItem failed"); + throw RuntimeException(L"UNetworkHandler::GetItem failed"); } } @@ -110,7 +110,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::MTL failed"); + throw RuntimeException(L"UNetworkHandler::MTL failed"); } } @@ -123,7 +123,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::Action failed"); + throw RuntimeException(L"UNetworkHandler::Action failed"); } } @@ -136,7 +136,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::RequestMagicSkillUse failed"); + throw RuntimeException(L"UNetworkHandler::RequestMagicSkillUse failed"); } } @@ -150,7 +150,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::RequestUseItem failed"); + throw RuntimeException(L"UNetworkHandler::RequestUseItem failed"); } } @@ -163,7 +163,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::RequestAutoSoulShot failed"); + throw RuntimeException(L"UNetworkHandler::RequestAutoSoulShot failed"); } } @@ -176,7 +176,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::ChangeWaitType failed"); + throw RuntimeException(L"UNetworkHandler::ChangeWaitType failed"); } } @@ -190,7 +190,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::RequestItemList failed"); + throw RuntimeException(L"UNetworkHandler::RequestItemList failed"); } } @@ -203,7 +203,7 @@ namespace Interlude } __except (EXCEPTION_EXECUTE_HANDLER) { - throw CriticalRuntimeException(L"UNetworkHandler::RequestRestartPoint failed"); + throw RuntimeException(L"UNetworkHandler::RequestRestartPoint failed"); } }