Questions tagged as 'pdoexception'

2
answers

Using Laravel 4 with Microsoft SQL Server 2008

I need to connect a SQL Server 2008 database in Laravel 4. I've been searching and found no solution to the scenario I'm in. I'm using Laravel using the XAMPP (PHP 5.5.6 --with-mssql) package on MAC OS X 10.9 with FreeTDS running perfectly...
asked by 20.01.2014 / 17:29
1
answer

How do I throw my own exceptions with PDO?

When executing the line below, in the constructor of my database access class: $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); The PDO will report errors by throwing exceptions of type PDOException . Is ther...
asked by 24.01.2014 / 04:13
1
answer

Creating a custom Exception from PDOException [closed]

Hello. I need to implement a custom Exception that extends from PDOException and thereby create some methods that return standard messages. So far I have only found unclear examples. Does anyone have a simple example?     
asked by 26.10.2015 / 18:01