DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 07 Aug 2007 07:35:01 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    unknown


Does EMAB increase overhead in some cases?   
Had I not been using EMAB, my function would look like:


func1(){
	try{
		op1();
	}catch{
		log.write("op1 failed");
	}
	try{
		op2();
	}catch{
		log.write("op2 failed");
	}

}

With EMAB:
func1(){
	try{
		op1();
	}catch{
		bool rethrow = ExceptionPolicy.HandleException(ex, "XYZ");
	}
	try{
		op2();
	}catch{
		bool rethrow = ExceptionPolicy.HandleException(ex, "XYZ");
	}

}

Please pardon the syntax. The point is that I lose the information
regarding the operation that failed, and hence in the handler, I am
not able to log a specific message such as "op1 failed" or "op2
failed".

What is the solution to this?
Date:Tue, 07 Aug 2007 07:35:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us