miniMVC/app/errors/error_php_exception.php

23 lines
835 B
PHP
Executable File

<div style="position:relative; margin:0.5em auto; padding:0.5em; width:95%; border:1px solid #924949; background: #f3e6e6;">
<h4>An uncaught exception was thrown.</h4>
<p>Message: <?php echo $message; ?></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']) && ! stristr($error['file'], SYS_PATH)): ?>
<p style="margin-left:10px">
File: <?php echo str_replace(BASE_PATH, "", $error['file']) ?><br />
Line: <?php echo $error['line'] ?><br />
Function: <?php echo $error['function'] /*<br />
Args: <pre style="margin-left:15px"><?php echo print_r($error['args'], TRUE) ?></pre> */ ?>
</p>
<?php endif ?>
<?php endforeach ?></p>
<?php endif ?>
</div>