meta/app/views/errors/error_php_exception.php

22 lines
723 B
PHP
Raw Normal View History

<div style="position:relative; margin:0.5em auto; padding:0.5em; width:95%; border:1px solid #924949; background: #f3e6e6;">
2012-08-09 16:36:27 -04:00
<h4>An uncaught <?= get_class($exception) ?> was thrown.</h4>
2012-07-12 10:31:08 -04:00
<p>Message: <?= $message; ?></p>
2012-07-12 10:31:08 -04:00
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
2012-07-12 10:31:08 -04:00
<p>Backtrace: </p>
<?php foreach($exception->getTrace() as $error): ?>
2012-07-12 10:31:08 -04:00
<?php if (isset($error['file']) && ! stristr($error['file'], MM_SYS_PATH)): ?>
<p style="margin-left:10px">
File: <?= str_replace(MM_BASE_PATH, "", $error['file']) ?><br />
Line: <?= $error['line'] ?><br />
Function: <?= $error['function'] ?>
</p>
<?php endif ?>
2012-07-12 10:31:08 -04:00
<?php endforeach ?></p>
2012-07-12 10:31:08 -04:00
<?php endif ?>
</div>