You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1014 B
23 lines
1014 B
<?php |
|
/* @var $exception \yii\base\Exception */ |
|
/* @var $handler \yii\web\ErrorHandler */ |
|
?> |
|
<div class="previous"> |
|
<span class="arrow">↵</span> |
|
<h2> |
|
<span>Caused by:</span> |
|
<?php $name = $handler->getExceptionName($exception); |
|
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)) { |
|
echo '<pre>Error Info: ' . print_r($exception->errorInfo, true) . '</pre>'; |
|
} ?> |
|
<?= $handler->renderPreviousExceptions($exception) ?> |
|
</div>
|
|
|