How to turn off WP error handling, but turn on php error handling?

How to turn off WP error handling, but turn on php error handling?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)