Problem
We tell PDO to wrap each issue into exception. In some cases it generates a few warnings and only then throws exception.
Why does it do it?
Duplicates?
There were no correct answers on SO regarding it. Last question was PHP PDO Exception + Warning on MySQL Has Gone Away? but people just marked it as duplicate instead of carefully answer.
Accepted answer not answers why does it do it and when. So I researched and will answer.