Question: I am trying to identify a screen in a multi-monitor setup to save some data linked to that screen. How can I reliable identify a screen, also after a reboot? 

I am aware of the `Screen` class in .Net but `Screen.DeviceName` seems not be consistently pointing to one screen (for example after installing a new graphics driver).

Answer: 
Take a look at the [Documentation of PDO](http://php.net/manual/en/pdo.error-handling.php)

You can change the error handling to **PDO::ERRMODE\_SILENT** or **PDO::ERRMODE\_WARNING**

```
$dbh = new PDO($dsn, $user, $password);
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);

```

Or use [set\_exception\_handler](http://php.net/manual/en/function.set-exception-handler.php) and define a handler for all your exceptions.
Try and edit the class itself to catch it.