summaryrefslogtreecommitdiffstats
path: root/application/views/errors/html/error_exception.php
blob: befa12955e9b9a1007e60a90ab4ee5fe3f2cc795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

<div style="border:1px solid #dd4814;padding-left:20px;margin:10px 0;">

	<h4>An uncaught Exception was encountered</h4>

	<p>Type: <?php echo get_class($exception); ?></p>
	<p>Message: <?php echo $message; ?></p>
	<p>Filename: <?php echo $exception->getFile(); ?></p>
	<p>Line Number: <?php echo $exception->getLine(); ?></p>

	<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>

		<p>Backtrace:</p>
		<?php foreach ($exception->getTrace() as $error): ?>

			<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>

				<p style="margin-left:10px">
				File: <?php echo $error['file']; ?><br />
				Line: <?php echo $error['line']; ?><br />
				Function: <?php echo $error['function']; ?>
				</p>
			<?php endif ?>

		<?php endforeach ?>

	<?php endif ?>

</div>