mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Initial implementation of DB class based on PDO MySQL driver
This commit is contained in:
parent
14e91b2e09
commit
cc271ee154
4 changed files with 559 additions and 2 deletions
18
common/framework/exceptions/dberror.php
Normal file
18
common/framework/exceptions/dberror.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Rhymix\Framework\Exceptions;
|
||||
|
||||
/**
|
||||
* The DB Error exception class.
|
||||
*/
|
||||
class DBError extends \Rhymix\Framework\Exception
|
||||
{
|
||||
public function __construct($message = '', $code = 0, $previous = null)
|
||||
{
|
||||
if ($message === '')
|
||||
{
|
||||
$message = 'DB Error';
|
||||
}
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue