backoffice/application/views/errors/html/error_exception.php

33 lines
839 B
PHP
Raw Normal View History

2020-02-06 10:09:39 +00:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>An uncaught Exception was encountered</h4>
2022-04-18 11:39:19 +00:00
<p>Type: <?= get_class($exception); ?></p>
<p>Message: <?= $message; ?></p>
<p>Filename: <?= $exception->getFile(); ?></p>
<p>Line Number: <?= $exception->getLine(); ?></p>
2020-02-06 10:09:39 +00:00
<?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">
2022-04-18 11:39:19 +00:00
File: <?= $error['file']; ?><br />
Line: <?= $error['line']; ?><br />
Function: <?= $error['function']; ?>
2020-02-06 10:09:39 +00:00
</p>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
2022-04-18 11:39:19 +00:00
</div>