This extension should be used to handle error controllers.
This extension should be used to handle error controllers.

Extending this class (instead of Benri_Controller_* or Benri_Rest_Controller)
format the errors according the te request type:
  - XmlHTTPRequests will return a JSON object with the error data
  - Common requests assign variables to the view object

douggr/benri,rt7/benri