<commit_before>jboss-as-ds-exception-handling: An example how to use DeltaSpike exception handling
====================================================================================
Author: <NAME>
Level: Beginner
Technologies: CDI, JSF, DeltaSpike
Summary: Exception being handled by different handlers and purpose
Prerequisites: 
Target Product: 

What is it?
-----------

This project demonstrates DelstaSpike exception handling. Exception handling in DeltaSpike is based around the CDI eventing model.

The entire exception handling process starts with an event. This helps keep your application minimally coupled to
DeltaSpike, but also allows for further extension. Exception handling in DeltaSpike is all about letting you take care of 
exceptions the way that makes the most sense for your application. Events provide this delicate balance. Firing the event
is the main way of starting the exception handling process.


The project can throw two Exceptions: MyException and MyOtherException. And there are 3 different handlers:   
 - FacesMessageExceptionHandler  - Shows every Exception using FacesMessage
 - LogExceptionHandler - Log every Exception
 - MyExceptionCountHandler - Only Count how many times MyException was throw.

The MyExceptionCountHandler is also used as a Named CDI bean.


System requirements
-------------------

All you need to build this project is Java 6.0 (Java SDK 1.6) or better, Maven 3.0 or better.

The application this project produces is designed to be run on JBoss Enterprise Application Platform 6 or JBoss AS 7. 

 
Configure Maven
---------------

If you have not yet done so, you must [Configure Maven](../README.md#mavenconfiguration) before testing the quickstarts.


Start JBoss Enterprise Application Platform 6 or JBoss AS 7<commit_msg>Adjuste README using Sande's comments<commit_after>jboss-as-ds-exception-handling: An example how to use DeltaSpike exception handling
====================================================================================
Author: <NAME>
Level: Beginner
Technologies: CDI, JSF, DeltaSpike
Summary: Exception being handled by different handlers and purpose
Prerequisites: 
Target Product: 

What is it?
-----------

This project demonstrates DelstaSpike exception handling. Exception handling in DeltaSpike is based around the CDI eventing model.

The entire exception handling process starts with an event. This helps keep your application minimally coupled to
DeltaSpike, but also allows for further extension. Exception handling in DeltaSpike is all about letting you take care of 
exceptions the way that makes the most sense for your application. Events provide this delicate balance. Firing the event
is the main way of starting the exception handling process.


The project can throw two Exceptions: MyException and MyOtherException. And there are 3 different handlers:   
 
 - FacesMessageExceptionHandler  - Displays each exception on the page using FacesMessage.
 - LogExceptionHandler - Logs each exception to the server console.
 - MyExceptionCountHandler - Only counts the the number of times MyException is thrown.

The MyExceptionCountHandler is also used as a Named CDI bean.


System requirements
-------------------

All you need to build this project is Java 6.0 (Java SDK 1.6) or better, Maven 3.0 or better.

The application this project produces is designed to be run on JBoss Enterprise Application Platform 6 or JBoss AS 7. 

 
Configure Maven
---------------

If you have not yet done so, you must [Configure Maven](../README.md#mavenconfiguration) before testing the quickstarts.


Start JBoss Enterprise Application Platform 6 or JBoss AS 7
{'fraction_non_alphanumeric': 0.10268346111719606, 'fraction_numerical': 0.006024096385542169, 'mean_word_length': 4.278901734104046, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7377254', 'n_tokens_mistral': 905, 'n_tokens_neox': 832, 'n_words': 464}