ExceptionHandler
class ExceptionHandler (View source)
Base Database exception handler class.
This class handles exceptions thrown by the database layer. Database driver implementation can provide an alternative implementation to support special handling required by that database.
Methods
void
handleStatementException(Exception $exception, string $sql, array $options = [])
Handles exceptions thrown during the preparation of statement objects.
void
handleExecutionException(Exception $exception, StatementInterface $statement, array $arguments = [], array $options = [])
Handles exceptions thrown during execution of statement objects.
Details
void
handleStatementException(Exception $exception, string $sql, array $options = [])
Handles exceptions thrown during the preparation of statement objects.
void
handleExecutionException(Exception $exception, StatementInterface $statement, array $arguments = [], array $options = [])
Handles exceptions thrown during execution of statement objects.