摘要
异常处理是建立稳定程序的重要措施。用.NET技术设计一种异常管理模型,实现异常的自动记录和通知。讨论了几种常见的记录异常信息的方法,着重于以高度可维护的方式来处理分布式系统下的程序。本模型提供了一种可伸缩性的框架,用高效、统一的方法管理异常,从程序的业务逻辑层把日志和报告的详细信息抽象化,使业务逻辑层和异常处理层解耦,能迅速、精确地通知操作人员当前所发生的问题,为开发人员提供有价值的诊断信息,并减少大量的需要用户创建、测试和维护的自定义异常处理代码,同时使应用程序更加健壮,易于调试。一致性、灵活性和可扩展性使本模型很有实用价值。
Exception handle is a significant technique of building steady applications. Using .NET technologies design an exception management module, which complements automatically logging and notifications. It analyses several familiar techniques of logging exception message, and focuses on the process of handling exceptions within distributed applications in a highly maintainable manner. This module provides a scalable framework, which manages exceptions efficiently and consistently. It abstracts the details of logging and reporting from the application's business logic, decoupled business logic layer and exception handler layer. It can quickly and accurately notify operators of any problems it is experiencing, and can provide valuable diagnosis information to developers. It reduces the amount of custom error handling code users need to create, test, and maintain, which makes application more robust and easier to debug. Consistency, flexibility and extensibility make this module much valuable.
出处
《西安科技大学学报》
CAS
北大核心
2004年第4期511-515,共5页
Journal of Xi’an University of Science and Technology