applicationexception.java
来自「XDoclet 使自动生成部署描述符更为便利。XDoclet 是一个代码生成实用」· Java 代码 · 共 24 行
JAVA
24 行
package test.interfaces;
/**
* Every J2EE application needs to specify custom exceptions, that are thrown by business logic.
* For example when validating a value set on an entity bean, this exception can be thrown. When
* implementing the Session Facade Pattern, these exceptions can be wrapped in a RemoteException
* and passed to the client. The client can then act on these in a user-friendly way.
*
* <p>For ease-of-use this exception is in the interfaces package. When you have many more
* application-specific exceptions, put them in a seperate package, it improves reuse and
* maintainability.</p>
*
* <p>For more information on EJB exception handling, read the
* <a href="http://www-106.ibm.com/developerworks/java/library/j-ejbexcept.html">
* Best practices in EJB exception handling</a> article at <a href="http://www-106.ibm.com/developerworks/">IBM developerWorks</a>.
*
* @author <a href="mailto:youremail@yourdomain.com">youremail@yourdomain.com</a>
*/
public class ApplicationException extends Exception {
public ApplicationException(String string) {
super(string);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?