first commit
This commit is contained in:
25
vendor/yiisoft/yii2/views/errorHandler/previousException.php
vendored
Normal file
25
vendor/yiisoft/yii2/views/errorHandler/previousException.php
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \yii\base\Exception $exception
|
||||
* @var \yii\web\ErrorHandler $handler
|
||||
*/
|
||||
?>
|
||||
<div class="previous">
|
||||
<span class="arrow">↵</span>
|
||||
<h2>
|
||||
<span>Caused by:</span>
|
||||
<?php $name = $handler->getExceptionName($exception) ?>
|
||||
<?php if ($name !== null): ?>
|
||||
<span><?= $handler->htmlEncode($name) ?></span> –
|
||||
<?= $handler->addTypeLinks(get_class($exception)) ?>
|
||||
<?php else: ?>
|
||||
<span><?= $handler->htmlEncode(get_class($exception)) ?></span>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<h3><?= nl2br($handler->htmlEncode($exception->getMessage())) ?></h3>
|
||||
<p>in <span class="file"><?= $exception->getFile() ?></span> at line <span class="line"><?= $exception->getLine() ?></span></p>
|
||||
<?php if ($exception instanceof \yii\db\Exception && !empty($exception->errorInfo)): ?>
|
||||
<pre>Error Info: <?= $handler->htmlEncode(print_r($exception->errorInfo, true)) ?></pre>
|
||||
<?php endif ?>
|
||||
<?= $handler->renderPreviousExceptions($exception) ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user