KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > interfaces > ApplicationException


1
2 package test.interfaces;
3
4 /**
5  * Every J2EE application needs to specify custom exceptions, that are thrown by business logic.
6  * For example when validating a value set on an entity bean, this exception can be thrown. When
7  * implementing the Session Facade Pattern, these exceptions can be wrapped in a RemoteException
8  * and passed to the client. The client can then act on these in a user-friendly way.
9  *
10  * <p>For ease-of-use this exception is in the interfaces package. When you have many more
11  * application-specific exceptions, put them in a seperate package, it improves reuse and
12  * maintainability.</p>
13  *
14  * <p>For more information on EJB exception handling, read the
15  * <a HREF="http://www-106.ibm.com/developerworks/java/library/j-ejbexcept.html">
16  * Best practices in EJB exception handling</a> article at <a HREF="http://www-106.ibm.com/developerworks/">IBM developerWorks</a>.
17  *
18  * @author <a HREF="mailto:youremail@yourdomain.com">youremail@yourdomain.com</a>
19  */

20 public class ApplicationException extends Exception JavaDoc {
21     public ApplicationException(String JavaDoc string) {
22         super(string);
23     }
24 }
Popular Tags