J2EE项目中一种新的错误处理方法  被引量:7

A NEW ERROR-HANDLING METHOD IN J2EE PROJECT

在线阅读下载全文

作  者:刘淑华[1] 

机构地区:[1]内蒙古电子信息职业技术学院计算机科学系,内蒙古呼和浩特010070

出  处:《计算机应用与软件》2013年第7期143-146,共4页Computer Applications and Software

基  金:江苏省自然科学基金项目(BK2011152)

摘  要:在Java异常机制的基础上,构建一个J2EE项目应用中错误处理的通用框架模型,并用该框架模型解决J2EE项目中错误处理中普遍存在的问题。对错误进行统一管理,在一定意义下将错误封装成异常,然后将异常抛出到一个集中的位置进行统一处理。让错误处理保持简单和直观,使开发人员可以专心于开发业务逻辑,而不是把时间浪费在编写错误处理这样的模板代码上。程序的可读性、可维护性、可修改性大大提高,而且也提高了J2EE应用程序的健壮性。Based on Java exception mechanism, we construct a generic framework model for errors handling in J2EE projects application, and use this framework model to have solved the common problems of errors handling in J2EE projects. The errors are made uniform management, and are encapsulated into exceptions in a certain sense, then the exceptions are thrown to a centralised location to be processed in a uniform way. The errors handling is maintained simple and intuitive, so that the developers can concentrate on developing the business logic rather than wasting time in compiling such template codes as the errors handling. The framework model makes the readability, maintainability and modifiability of the program greatly improved, and the robustness of the J2EE application is also improved as well.

关 键 词:异常机制 J2EE错误处理 通用框架模型 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象