T
Tracy Bannon
I am using VS2008 with C# to write a demo app. I have just begun to
add exception management.
I added a simple proof of concept method shown below where I catch an
exception and propogate it using throw.
When I run this in the IDE, with a break point set on the catch
statement and on the throw statement, I find that the throw statement
"appears"
to be caught by the same catch block. Note: The calling routine does
not have any retry logic.
The IDE stops on the throw statement and shows the exception handling
dialog box.
public void UpdateTeamMember(TeamMember teamMember)
{
try
{
//TODO: remove this testing
throw new Exception
("BusinessComponentTestException");
catch (Exception ex)
{
bool rethrow = ExceptionPolicy.HandleException(ex,
"BusinessComponentNotifyRethrow");
if (rethrow)
{
throw;
}
}
}
(BTW, I'm using EL3.1 and my exception handling policy returns
true)
I'm a little perplexed. I must have a visual studio IDE setting or
option incorrect?
add exception management.
I added a simple proof of concept method shown below where I catch an
exception and propogate it using throw.
When I run this in the IDE, with a break point set on the catch
statement and on the throw statement, I find that the throw statement
"appears"
to be caught by the same catch block. Note: The calling routine does
not have any retry logic.
The IDE stops on the throw statement and shows the exception handling
dialog box.
public void UpdateTeamMember(TeamMember teamMember)
{
try
{
//TODO: remove this testing
throw new Exception
("BusinessComponentTestException");
catch (Exception ex)
{
bool rethrow = ExceptionPolicy.HandleException(ex,
"BusinessComponentNotifyRethrow");
if (rethrow)
{
throw;
}
}
}
(BTW, I'm using EL3.1 and my exception handling policy returns
true)
I'm a little perplexed. I must have a visual studio IDE setting or
option incorrect?