misc: APIHelper에서 Exception과 Error를 상세 분리
This commit is contained in:
@@ -97,7 +97,10 @@ class APIHelper
|
|||||||
], $setCache ? 0 : Json::NO_CACHE);
|
], $setCache ? 0 : Json::NO_CACHE);
|
||||||
}
|
}
|
||||||
Json::die($result, $setCache ? 0 : Json::NO_CACHE);
|
Json::die($result, $setCache ? 0 : Json::NO_CACHE);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
Json::dieWithReason($e->getMessage());
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
logExceptionByCustomHandler($e);
|
||||||
Json::dieWithReason($e->getMessage());
|
Json::dieWithReason($e->getMessage());
|
||||||
} catch (mixed $e) {
|
} catch (mixed $e) {
|
||||||
Json::dieWithReason(strval($e));
|
Json::dieWithReason(strval($e));
|
||||||
|
|||||||
Reference in New Issue
Block a user