resurtm
12 years ago
2 changed files with 53 additions and 36 deletions
@ -1,20 +1,24 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* @var \yii\base\View $this |
||||||
|
* @var \yii\base\Exception $exception |
||||||
|
* @var string $previousHtml |
||||||
|
* @var \yii\base\ErrorHandler $context |
||||||
|
*/ |
||||||
|
$context = $this->context; |
||||||
|
?> |
||||||
<div class="previous"> |
<div class="previous"> |
||||||
<h1><span class="arrow">↵</span><span>Caused by: </span><?php |
<span class="arrow">↵</span> |
||||||
/** |
<h2> |
||||||
* @var \yii\base\View $this |
<span>Caused by:</span> |
||||||
* @var \yii\base\Exception $exception |
<?php if ($exception instanceof \yii\base\Exception): ?> |
||||||
* @var string $previousHtml |
<span><?php echo $context->htmlEncode($exception->getName()); ?></span> –
|
||||||
* @var \yii\base\ErrorHandler $context |
<?php echo $context->addTypeLinks(get_class($exception)); ?> |
||||||
*/ |
<?php else: ?> |
||||||
$context = $this->context; |
<span><?php echo $context->htmlEncode(get_class($exception)); ?></span>
|
||||||
if ($exception instanceof \yii\base\Exception) { |
<?php endif; ?> |
||||||
echo '<span>' . $context->htmlEncode($exception->getName()) . '</span>'; |
</h2> |
||||||
echo ' – ' . $context->addTypeLinks(get_class($exception)); |
<h3><?php echo $context->htmlEncode($exception->getMessage()); ?></h3>
|
||||||
} else { |
<p>in <span class="file"><?php echo $exception->getFile(); ?></span> at line <span class="line"><?php echo $exception->getLine(); ?></span></p>
|
||||||
echo '<span>' . $context->htmlEncode(get_class($exception)) . '</span>'; |
|
||||||
} |
|
||||||
?></h1> |
|
||||||
<h2><?php echo $context->htmlEncode($exception->getMessage()); ?></h2>
|
|
||||||
<p>In <span class="file"><?php echo $exception->getFile(); ?></span> at line <span class="line"><?php echo $exception->getLine(); ?></span></p>
|
|
||||||
<?php echo $previousHtml; ?> |
<?php echo $previousHtml; ?> |
||||||
</div> |
</div> |
Loading…
Reference in new issue