for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Views\Exception;
class CompileException extends EngineException
{
private array $userTrace = [];
public function __construct(\Throwable $previous = null)
parent::__construct((string) $previous?->getMessage(), (int) ($previous?->getCode() ?? 0), $previous);
$this->file = (string) $previous?->getFile();
$this->line = (int) $previous?->getLine();
}
/**
* Set user trace pointing to the location of error in view templates.
*/
public function setUserTrace(array $trace): void
$this->userTrace = $trace;
public function getUserTrace(): array
return $this->userTrace;