Skip to content

Commit 37026bd

Browse files
authored
Create BadQueryException.php
1 parent f558051 commit 37026bd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
/** Red Framework
3+
* Standard Database Bad Query Exception
4+
* @author REDCODER
5+
* http://redframework.ir
6+
*/
7+
8+
9+
namespace Red\StandardExceptions\DB;
10+
11+
12+
use Red\Base\RedException;
13+
14+
class BadQueryException extends RedException
15+
{
16+
17+
public function __construct($exception_message, $code = 0, \Exception $previous = null) {
18+
$exception_no = "Database Query Failure !";
19+
parent::__construct($exception_no, $exception_message, $code, $previous);
20+
}
21+
22+
}

0 commit comments

Comments
 (0)