joomla/joomla-cms — pull request #2626 by asika32764 (2013-12-01 10:32:56+00:00)
Title: Add render backtrace in isis template with bootstrap style

## Introduction

In current time, we use `setError()`, `geetError()` and `JError::raiseError()` in component to send error message.

However, if we use `Exception` to throw error, the debug plugin will not render backtrace for developer. It only work when we use `JError::reiseError()`.

It's because we have this code: https://github.com/joomla/joomla-cms/blob/master/plugins/system/debug/debug.php#L213

``` php
if (JDEBUG)
{
if (JError::getErrors())
{
$html[] = $this->display('errors');
}
```

To detect whether display errors or not. When we throw exception, `JError::getErrors()` will return null.

## The Modification

I added backtrace table in isis `error.php`, this code are consult `JDocumentError::renderBacktrace()`, but I dont' use this method because it rendered a table without bootstrap table style.

So I wrote backtrace renderer in isis to support Bootstrap style. I dont't want to change `JDocumentError`, because it is a Platform class not CMS class.

## Screenshot
![p2013-12-01-3](https://f.cloud.github.com/assets/1639206/1650232/eb7e84cc-5a73-11e3-996e-81446b8b5845.jpg)