G
Gil
Hi All.
I am testing Microsoft Enterprise Library - June 2005 Exception
Handling, and I am trying to pass parameters to HandleException Method,
and recieve it in my implementation of the abstract class.
However, it seems that the HandleException can only implement:
public abstract Exception HandleException(
Exception exception,
string policyName,
Guid handlingInstanceId
And that you can not add your own override implementation.
Does some one knows if this doable and how ?
What I tried to do is to implement the HandleException by adding more
parameters after the GUID parameter. The problem is that it would not
compile.
Example
void func(string strData)
{
try
{
...
}
catch(Exception e)
{
ExceptionPolicy.HandleException(e,"DAL",strData);
}
}
I am testing Microsoft Enterprise Library - June 2005 Exception
Handling, and I am trying to pass parameters to HandleException Method,
and recieve it in my implementation of the abstract class.
However, it seems that the HandleException can only implement:
public abstract Exception HandleException(
Exception exception,
string policyName,
Guid handlingInstanceId
And that you can not add your own override implementation.
Does some one knows if this doable and how ?
What I tried to do is to implement the HandleException by adding more
parameters after the GUID parameter. The problem is that it would not
compile.
Example
void func(string strData)
{
try
{
...
}
catch(Exception e)
{
ExceptionPolicy.HandleException(e,"DAL",strData);
}
}