M
M
McMike2017-02-15 07:18:12
PostgreSQL
McMike, 2017-02-15 07:18:12

How to catch exception from Postrges?

Sometimes an incorrect request is collected by means of the framework, as a result, an exception occurs at the time of its execution and the site falls entirely. How to catch such exceptions? Just try-catch doesn't help
Database Exception - yii\db\Exception
Caused by: PDOException SQLSTATE[42P01]:

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question