for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.9.7
*/
namespace Quantum\View\Exceptions;
use Quantum\Exceptions\BaseException;
* Class ViewException
* @package Quantum\View
class ViewException extends BaseException
{
* @param string $name
* @return ViewException
public static function directInstantiation(string $name): ViewException
return new static(t('exception.direct_view_instance', $name), E_WARNING);
}
public static function noLayoutSet(): ViewException
return new static(t('exception.layout_not_set'), E_ERROR);
public static function viewNotRendered(): ViewException
return new static(t('exception.view_not_rendered_yet'), E_ERROR);