What happens here ? I wonder whether SaveError() can be called after exception block ? Does the Main.cs get noticed about caught error? I want to see the story behind this case. What is the value of the variable "a" ? note: Asume there has been an error in try block.
Main.Cs
public void RunAll()
{
....
int a = doSubTask();
}
A.cs
public int doSubTask(){
try{
..
..
return 1;
}catch(Exception Ex)
{
throw new AppException("Error", ex);
}
finally
{
SaveError();
return -1;
}
return 0;
}
foo
in the declaration and invocation.