Qiang Xue
12 years ago
5 changed files with 62 additions and 58 deletions
File diff suppressed because one or more lines are too long
@ -1,24 +1,21 @@ |
|||||||
<?php |
<?php |
||||||
/** |
/** |
||||||
* @var \yii\base\View $this |
|
||||||
* @var \yii\base\Exception $exception |
* @var \yii\base\Exception $exception |
||||||
* @var string $previousHtml |
* @var \yii\base\ErrorHandler $this |
||||||
* @var \yii\base\ErrorHandler $context |
|
||||||
*/ |
*/ |
||||||
$context = $this->context; |
|
||||||
?> |
?> |
||||||
<div class="previous"> |
<div class="previous"> |
||||||
<span class="arrow">↵</span> |
<span class="arrow">↵</span> |
||||||
<h2> |
<h2> |
||||||
<span>Caused by:</span> |
<span>Caused by:</span> |
||||||
<?php if ($exception instanceof \yii\base\Exception): ?> |
<?php if ($exception instanceof \yii\base\Exception): ?> |
||||||
<span><?php echo $context->htmlEncode($exception->getName()); ?></span> –
|
<span><?php echo $this->htmlEncode($exception->getName()); ?></span> –
|
||||||
<?php echo $context->addTypeLinks(get_class($exception)); ?> |
<?php echo $this->addTypeLinks(get_class($exception)); ?> |
||||||
<?php else: ?> |
<?php else: ?> |
||||||
<span><?php echo $context->htmlEncode(get_class($exception)); ?></span>
|
<span><?php echo $this->htmlEncode(get_class($exception)); ?></span>
|
||||||
<?php endif; ?> |
<?php endif; ?> |
||||||
</h2> |
</h2> |
||||||
<h3><?php echo $context->htmlEncode($exception->getMessage()); ?></h3>
|
<h3><?php echo $this->htmlEncode($exception->getMessage()); ?></h3>
|
||||||
<p>in <span class="file"><?php echo $exception->getFile(); ?></span> at line <span class="line"><?php echo $exception->getLine(); ?></span></p>
|
<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 $this->renderPreviousExceptions($exception); ?> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue