githubtrue/cron/db/db-exception.php @ 574d6347
1 |
<?php
|
---|---|
2 |
|
3 |
class DB_Exception extends Exception { |
4 |
|
5 |
public function __construct($message = false, $code = false) { |
6 |
if (!$message) { |
7 |
$this->message = mysql_error(); |
8 |
}
|
9 |
if (!$code) { |
10 |
$this->code = mysql_errno(); |
11 |
}
|
12 |
}
|
13 |
|
14 |
}
|
15 |
|
16 |
?>
|