for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\kw_rules\Exceptions;
use Exception;
use Throwable;
class RuleException extends Exception
{
protected ?Throwable $prev = null;
public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
parent::__construct($message, $code, $previous);
$this->prev = $previous;
}
public function setPrev(?Throwable $prev): void
$this->prev = $prev;
public function getPrev(): ?Throwable
return $this->prev;