*/ private array $vars; /** * @param array $vars */ public function __construct(string $key, array $vars = [], int $code = 0, ?Throwable $previous = null) { parent::__construct($key, $code, $previous); $this->vars = $vars; } public function key(): string { return $this->getMessage(); } /** * @return array */ public function vars(): array { return $this->vars; } }