previousException.php 779 Bytes
Newer Older
1 2 3
<?php
/**
 * @var \yii\base\Exception $exception
4
 * @var \yii\base\ErrorHandler $this
5 6
 */
?>
7
<div class="previous">
8 9 10 11
	<span class="arrow">&crarr;</span>
	<h2>
		<span>Caused by:</span>
		<?php if ($exception instanceof \yii\base\Exception): ?>
12 13
			<span><?php echo $this->htmlEncode($exception->getName()); ?></span> &ndash;
			<?php echo $this->addTypeLinks(get_class($exception)); ?>
14
		<?php else: ?>
15
			<span><?php echo $this->htmlEncode(get_class($exception)); ?></span>
16 17
		<?php endif; ?>
	</h2>
18
	<h3><?php echo $this->htmlEncode($exception->getMessage()); ?></h3>
19
	<p>in <span class="file"><?php echo $exception->getFile(); ?></span> at line <span class="line"><?php echo $exception->getLine(); ?></span></p>
20
	<?php echo $this->renderPreviousExceptions($exception); ?>
21
</div>