misc: APIHelper에서 Exception과 Error를 상세 분리
This commit is contained in:
1 parent
b8f957130d
commit
717017fad5
1 file changed
+3
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user