oxadodbexception.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class oxAdoDbException extends oxConnectionException
00010 {
00011 
00012     function __construct( $sDbDriver, $sFunction, $iErrorNr, $sErrorMsg, $sParam1, $sParam2, $oConnection )
00013     {
00014         $sUser = $oConnection->username;
00015         $iErrorNr = is_numeric($iErrorNr)? $iErrorNr : -1;
00016 
00017         $sMessage = "$sDbDriver:$sFunction error: [$iErrorNr: $sErrorMsg] in $sFunction with parameters $sParam1, $sParam2 for user $sUser\n";
00018 
00019         parent::__construct( $sMessage, $iErrorNr );
00020     }
00021 }