dzzoffice/core/class/class_DbException.php
2018-03-23 14:20:16 +08:00

20 lines
296 B
PHP

<?php
if(!defined('IN_DZZ')) {
exit('Access Denied');
}
class DbException extends Exception{
public $sql;
public function __construct($message, $code = 0, $sql = '') {
$this->sql = $sql;
parent::__construct($message, $code);
}
public function getSql() {
return $this->sql;
}
}
?>