You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the above code, the exception is never thrown and allows the program to proceed smoothly.
In the base model, an exception is thrown with a failed DB connection, however, in the extended models, no exception is being thrown with a failed SQL query.
Activity
mhco commentedon Mar 29, 2018
@panique This isn't an issue with the Mini3 framework, but a general PHP question.
That being said, try removing the first catch block, as it really doesn't do anything, and why do you have the slash before "Exception"?
Luanr commentedon Jul 8, 2022
If you really want to throw Exceptions using PDO you can change your Error Mode to Exception Mode instead of warnings on Model.php:
mini3/application/Core/Model.php
Line 35 in bf66697
from
PDO::ERRMODE_WARNINGtoPDO::ERRMODE_EXCEPTION