refac: 에러 핸들링 방식 변경, FatalError 대응

This commit is contained in:
2022-05-09 03:39:30 +09:00
parent c5345494b1
commit 80edfefdb1
10 changed files with 24 additions and 14 deletions
+2 -2
View File
@@ -134,7 +134,7 @@ class GeneralBuilder{
$this->specialDomestic = SpecialityHelper::getDomesticClassByName($special);
$this->specialWar = GameConst::$defaultSpecialWar;
}
catch (\Exception $e){
catch (\Throwable $e){
$this->specialDomestic = GameConst::$defaultSpecialDomestic;
$this->specialWar = SpecialityHelper::getWarClassByName($special);
}
@@ -540,7 +540,7 @@ class GeneralBuilder{
$text = \file_get_contents(\sammo\ServConfig::getSharedIconPath('../hook/list.json?1'));
$storedIcons = \sammo\Json::decode($text);
}
catch(\Exception $e){
catch(\Throwable $e){
$storedIcons = [];
}