类 MissingCellTemplateException
当找不到单元格的模板文件时使用。
命名空间: Cake\View\Exception
属性摘要
-
$_attributes protected
数组从构造函数传入的属性数组,并在显示开发错误时在视图中可用。
-
$_defaultCode protected
整数默认异常代码
-
$_messageTemplate protected
字符串模板字符串,其中包含用 sprintf() 格式化的属性。
-
$filename protected
字符串 -
$name protected
字符串 -
$paths protected
list<string> -
$templateName protected
字符串|null -
$type protected
字符串
方法摘要
-
__construct() public
构造函数
-
formatMessage() public
获取格式化的异常消息。
-
getAttributes() public
获取传入的属性
方法详细
__construct() ¶ public
__construct(string $name, string $file, list<string> $paths = [], int|null $code = null, Throwable|null $previous = null)
构造函数
参数
-
string$name 缺少视图的单元格名称。
-
string$file 视图文件名。
-
list<string>$paths optional 找不到模板的路径列表。
-
int|null$code optional 错误代码。
-
Throwable|null$previous optional 之前的异常。