for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
namespace PhUml\Templates;
use RuntimeException;
use Throwable;
* Custom exception to catch problems related to Twig
final class TemplateFailure extends RuntimeException
{
public function __construct(Throwable $cause)
parent::__construct("Template rendering failed: {$cause->getMessage()}", $cause->getCode(), $cause);
}