Description
When connection to MySQL server is lost you get
Yiisoft\Db\Exception\IntegrityException: SQLSTATE[HY000]: General error: 7 no connection to the server
instead of more correct Yiisoft\Db\Exception\Exception or, maybe, more specific, but not existing ConnectionException.
Source:
|
private const MSG_INTEGRITY_EXCEPTION_1 = 'SQLSTATE[23'; |
|
private const MGS_INTEGRITY_EXCEPTION_2 = 'ORA-00001: unique constraint'; |
|
private const MSG_INTEGRITY_EXCEPTION_3 = 'SQLSTATE[HY'; |
Package version
2.0
PHP version
8.4
Description
When connection to MySQL server is lost you get
instead of more correct
Yiisoft\Db\Exception\Exceptionor, maybe, more specific, but not existingConnectionException.Source:
db/src/Exception/ConvertException.php
Lines 19 to 21 in 1f38570
Package version
2.0
PHP version
8.4