using composer package format, decoupling bsr libraries and implementation

This commit is contained in:
Guillermo Dev
2018-10-09 21:17:41 +02:00
parent adb8552602
commit 1478569426
62 changed files with 1848 additions and 2187 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace BSR\Lib\Exception;
class SqlException extends \Exception
{
private $query;
public function __construct($message = "Sql Error", $query = "")
{
$this->query = $query;
parent::__construct($message, 0);
}
public function getSqlError()
{
return $this->getMessage().' while executing: '.$this->query;
}
}