Problem Statement
Explain how PDO handles exceptions and errors.
Explanation
PDO can throw exceptions on errors when error mode is set to ERRMODE_EXCEPTION. This allows structured error handling through try-catch blocks instead of checking return values manually.
