misc: APIHelper에서 Exception과 Error를 상세 분리

This commit is contained in:
2022-05-09 22:27:02 +09:00
parent b8f957130d
commit 717017fad5
+3
View File
@@ -97,7 +97,10 @@ class APIHelper
], $setCache ? 0 : Json::NO_CACHE);
}
Json::die($result, $setCache ? 0 : Json::NO_CACHE);
} catch (\Exception $e) {
Json::dieWithReason($e->getMessage());
} catch (\Throwable $e) {
logExceptionByCustomHandler($e);
Json::dieWithReason($e->getMessage());
} catch (mixed $e) {
Json::dieWithReason(strval($e));