feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
318 changed files with 824 additions and 12405 deletions
Showing only changes of commit 55745a8d0a - Show all commits

View File

@ -6,10 +6,15 @@ use Throwable;
class EmptyResult extends Exception
{
public function __construct(public string $query, ?Throwable $previous = null)
public function __construct(public string $query, ?Throwable $previous = null, protected ?array $data = null)
{
$message = "Empty results for {$query}";
$code = 700;
parent::__construct($message, $code, $previous);
}
public function getData(): ?array
{
return $this->data;
}
}