joomla/joomla-platform — pull request #964 by LouisLandry (2012-03-06 05:49:04+00:00)
Title: Move JError::raiseError() calls to throw new Exception().

All calls to `JError::raiseError($code, $message);` were changed to `throw new Exception($message, $code);`

This is phase one of the move off of JError. The next step will be to evaluate all of the Exception classes and use an appropriate semantic SPL exception class.

## Adjustments to the Unit Tests

The biggest adjustment was adding code to skip `JSessionStorage` classes where the storage mechanism was not available. Aside from that I changed the tests for `JHtml::_()` so that exceptions were expected instead of setting up an elaborate mock callback class to verify that a `JException` was raised via `JError`.

*Big thanks to Elin for grep'ing the codebase for JError::raiseError() calls for me. Huge time saver.*