edruid/BasicObject — pull request #12 by p-blomberg (2011-11-23 22:38:14+00:00)
Title: Passing mysqli stmt errno along in exception

The errno from mysqli stmt is sometimes useful.
Consider this block of code:

```php
foreach($products as $p) {
try {
$p->add_tag($tag[0]);
} catch(Exception $e) {
// Just ignore duplicate entry exceptions
if($e->getCode() == 1062) {
continue;
}
throw $e;
}
$counter++;
}
```