miniMVC/app/views/errors/error_php_exception.php

22 lines
704 B
PHP
Raw Normal View History

2012-01-13 11:58:06 -05:00
<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>
2012-07-12 10:23:55 -04:00
2012-04-30 16:52:38 -04:00
<p>Message: <?= $message; ?></p>
2012-07-12 10:23:55 -04:00
2012-05-03 13:26:09 -04:00
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
2012-07-12 10:23:55 -04:00
2012-01-13 11:58:06 -05:00
<p>Backtrace: </p>
<?php foreach($exception->getTrace() as $error): ?>
2012-07-12 10:23:55 -04:00
2012-05-03 13:26:09 -04:00
<?php if (isset($error['file']) && ! stristr($error['file'], MM_SYS_PATH)): ?>
2012-01-13 11:58:06 -05:00
<p style="margin-left:10px">
2012-05-03 13:26:09 -04:00
File: <?= str_replace(MM_BASE_PATH, "", $error['file']) ?><br />
2012-04-30 16:52:38 -04:00
Line: <?= $error['line'] ?><br />
Function: <?= $error['function'] ?>
2012-01-13 11:58:06 -05:00
</p>
<?php endif ?>
2012-07-12 10:23:55 -04:00
2012-01-13 11:58:06 -05:00
<?php endforeach ?></p>
2012-07-12 10:23:55 -04:00
2012-01-13 11:58:06 -05:00
<?php endif ?>
</div>