1 | <?php |
||
2 | /** |
||
3 | * EGroupware API - Db Exceptions |
||
4 | * |
||
5 | * @link http://www.egroupware.org |
||
6 | * @author Ralf Becker <RalfBecker-AT-outdoor-training.de> |
||
7 | * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License |
||
8 | * @package api |
||
9 | * @subpackage db |
||
10 | * @access public |
||
11 | * @version $Id$ |
||
12 | */ |
||
13 | |||
14 | namespace EGroupware\Api\Db; |
||
15 | |||
16 | /** |
||
17 | * Exception thrown by the Api\Db class for everything not covered by extended classed below |
||
18 | * |
||
19 | * New Db\Exception has to extend deprecated egw_exception_db to allow legacy code |
||
20 | * to catch exceptions thrown by Api\Db class! |
||
21 | */ |
||
22 | class Exception extends \egw_exception_db |
||
0 ignored issues
–
show
Deprecated Code
introduced
by
![]() |
|||
23 | { |
||
24 | /** |
||
25 | * Constructor |
||
26 | * |
||
27 | * @param string $msg =null message, default "Database error!" |
||
28 | * @param int $code =100 |
||
29 | */ |
||
30 | function __construct($msg=null,$code=100) |
||
31 | { |
||
32 | if (is_null($msg)) $msg = lang('Database error!'); |
||
33 | |||
34 | parent::__construct($msg,$code); |
||
35 | } |
||
36 | } |
||
37 |