Commit 1eb38227 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Forgot removing method from Driver interface, documented ExceptionConverterDriver better.

parent 34b0c292
......@@ -72,11 +72,4 @@ interface Driver
* @return string The name of the database.
*/
public function getDatabase(Connection $conn);
/**
* @param \Exception $exception
*
* @return int
*/
public function convertExceptionCode(\Exception $exception);
}
......@@ -29,6 +29,12 @@ use Exception;
interface ExceptionConverterDriver
{
/**
* Method converts driver exceptions to standard error codes from
* {@see Doctrine\DBAL\DBALException}.
*
* The DBALException error codes are returned from this method
* and the DBAL decides how to convert them into a common exception.
*
* @param \Exception $exception
*
* @return int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment