oxadodbexception.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class oxAdoDbException extends oxConnectionException
00010 {
00022     public function __construct($sDbDriver, $sFunction, $iErrorNr, $sErrorMsg, $sParam1, $sParam2, $oConnection)
00023     {
00024         $sUser = $oConnection->username;
00025         $iErrorNr = is_numeric($iErrorNr) ? $iErrorNr : -1;
00026 
00027         $sMessage = "$sDbDriver error: [$iErrorNr: $sErrorMsg] in $sFunction ($sParam1, $sParam2) with user $sUser\n";
00028 
00029         parent::__construct($sMessage, $iErrorNr);
00030     }
00031 }