mirror of
https://github.com/avecms/AVE.cms.git
synced 2026-08-01 08:45:44 +00:00
32 lines
714 B
PHP
32 lines
714 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------------------
|
|
| AVE.cms
|
|
|--------------------------------------------------------------------------------------
|
|
| @package AVE.cms
|
|
| @file system/App/Common/Db/DB_Exception.php
|
|
| @author AVE.cms <support@ave-cms.ru>
|
|
| @copyright 2007-2026 (c) AVE.cms
|
|
| @link https://ave-cms.ru
|
|
| @version 3.3
|
|
*/
|
|
|
|
class DB_Exception extends Exception
|
|
{
|
|
protected $query = '';
|
|
|
|
function __construct($message = '', $query = '', $code = 0)
|
|
{
|
|
parent::__construct($message);
|
|
|
|
$this->query = $query;
|
|
$this->code = $code;
|
|
}
|
|
|
|
public function getQuery()
|
|
{
|
|
return $this->query;
|
|
}
|
|
}
|