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

32 lines
974 B
PHP
Raw Normal View History

2020-12-09 15:17:45 +03: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>
<p>Type: <?= get_class($exception) ?></p>
<p>Message: <?= $message ?></p>
<p>Filename: <?= $exception->getFile() ?></p>
<p>Line Number: <?= $exception->getLine() ?></p>
2020-12-09 15:17:45 +03: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">
File: <?= $error['file'] ?><br>
Line: <?= $error['line'] ?><br>
Function: <?= $error['function'] ?>
</p>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</div>