2017-01-30 22:10:14 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Core\Exceptions;
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
|
|
|
class SQLException extends Exception {
|
|
|
|
/**
|
|
|
|
* @var $failingQuery string
|
|
|
|
*/
|
|
|
|
public $failingQuery;
|
|
|
|
|
|
|
|
function __construct($failingQuery) {
|
|
|
|
$this->failingQuery = $failingQuery;
|
|
|
|
|
2017-02-01 22:04:52 -05:00
|
|
|
parent::__construct('A SQL Exceptions occurred. Check the logs for more information.');
|
2017-01-30 22:10:14 -05:00
|
|
|
}
|
|
|
|
}
|