Adobe-Consulting-Services/acs-aem-commons — pull request #55 by davidjgonzalez (2013-11-13 05:05:36+00:00)
Title: Feature/component error handler

Filter that replaces the ugly, confusing (to Authors) component error messaging in a customizable, clean, yet editable manner and provides an unobtrusive facility to hide component instances on a page from show in Publish (in the event of an error, the entire page does not have to error out, the erring component can not be rendered. This avoids needing to wrap every component impl in a try/catch or other obtrusive means. Actual errors stacks are written to the log file.

Edit (Edit, Design, Analytics(?)), Preview (Preview, Readonly) and Publish(Disabled) component error views are supported. Each view (Edit/Preview/Publish) is customizable using a supporting HTML file (defaults provided).

Choice of HTML over JSP to prevent accidental errors being thrown in the component error views.

Currently in the errorpagehandler page; doesnt feel like the right place. Wish I had named the "errorpagehandler" package "errorhandler" now. Naming suggestions welcome!

![edit](https://f.cloud.github.com/assets/1451868/1528923/2b0debf4-4c1f-11e3-8122-133afbbe2073.png)
![preview](https://f.cloud.github.com/assets/1451868/1528907/d3e38e10-4c1e-11e3-80c2-9ec464de516e.png)
![publish](https://f.cloud.github.com/assets/1451868/1528908/d3e99c7e-4c1e-11e3-9b8e-3f671a0d4556.png)
![adobe_cq_web_console_-_configuration](https://f.cloud.github.com/assets/1451868/1528909/d3efeb42-4c1e-11e3-9fb2-4425ba3fe850.png)