diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2007-09-20 21:07:25 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2007-09-20 21:07:25 +0400 |
commit | 846249d09ac3ae3747c0173619fb45d3484794bf (patch) | |
tree | 4f72708d08bc1cbe169934c545a32a9330acf9f5 /libs/Zend/Db/Statement/Oracle | |
parent | 6adbdb52f0c9a8c9b5a1118754b1b077c2813b44 (diff) |
Cleaning this huge repository
git-svn-id: http://dev.piwik.org/svn/trunk@104 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/Zend/Db/Statement/Oracle')
-rwxr-xr-x | libs/Zend/Db/Statement/Oracle/Exception.php | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/libs/Zend/Db/Statement/Oracle/Exception.php b/libs/Zend/Db/Statement/Oracle/Exception.php deleted file mode 100755 index 433948ab50..0000000000 --- a/libs/Zend/Db/Statement/Oracle/Exception.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php -/** - * Zend Framework - * - * LICENSE - * - * This source file is subject to the new BSD license that is bundled - * with this package in the file LICENSE.txt. - * It is also available through the world-wide-web at this URL: - * http://framework.zend.com/license/new-bsd - * If you did not receive a copy of the license and are unable to - * obtain it through the world-wide-web, please send an email - * to license@zend.com so we can send you a copy immediately. - * - * @category Zend - * @package Zend_Db - * @subpackage Statement - * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ - -/** - * Zend_Db_Statement_Exception - */ -require_once 'Zend/Db/Statement/Exception.php'; - -/** - * @category Zend - * @package Zend_Db - * @subpackage Statement - * @copyright Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com) - * @license http://framework.zend.com/license/new-bsd New BSD License - */ - -class Zend_Db_Statement_Oracle_Exception extends Zend_Db_Statement_Exception -{ - protected $message = 'Unknown exception'; - protected $code = 0; - - function __construct($error = null, $code = 0) - { - if (is_array($error)) { - if (!isset($error['offset'])) { - $this->message = $error['code']." ".$error['message']; - } else { - $this->message = $error['code']." ".$error['message']." "; - $this->message .= substr($error['sqltext'], 0, $error['offset']); - $this->message .= "*"; - $this->message .= substr($error['sqltext'], $error['offset']); - } - $this->code = $error['code']; - } - if (!$this->code && $code) { - $this->code = $code; - } - } -} - |