mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-10 04:03:01 +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);
|
||||
}
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@ namespace Rhymix\Framework\Exceptions;
|
|||
/**
|
||||
* The Query Error exception class.
|
||||
*/
|
||||
class QueryError extends \Rhymix\Framework\Exception
|
||||
class QueryError extends DBError
|
||||
{
|
||||
public function __construct($message = '', $code = 0, $previous = null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue