Tom Knowlton
asked on
catch block
Will both exceptions fire if the exception raised is a COMException, or will just the COMException fire and ignore the general Exception?
try
{
...
...
}
catch(COMException eeee)
{
genFuncs.SendMessage("tom@ thebuyersf und.com"," Problem in BFFaxCOM method LoopThroughGiftLetterBookm arks","Ent ryID: " + this.FAXCOM_ENTRYID + "\n\n\nERROR MESSAGE FOLLOWS: " + eeee.ToString());
genFuncs.SendMessage("jaso ns@thebuye rsfund.com ","Problem in BFFaxCOM method LoopThroughGiftLetterBookm arks","Ent ryID: " + this.FAXCOM_ENTRYID + "\n\n\nERROR MESSAGE FOLLOWS: " + eeee.ToString());
}
catch(Exception eee)
{
genFuncs.SendMessage("tom@ thebuyersf und.com"," Problem in BFFaxCOM method LoopThroughGiftLetterBookm arks","Ent ryID: " + this.FAXCOM_ENTRYID + "\n\n\nERROR MESSAGE FOLLOWS: " + eee.ToString());
genFuncs.SendMessage("jaso ns@thebuye rsfund.com ","Problem in BFFaxCOM method LoopThroughGiftLetterBookm arks","Ent ryID: " + this.FAXCOM_ENTRYID + "\n\n\nERROR MESSAGE FOLLOWS: " + eee.ToString());
}
try
{
...
...
}
catch(COMException eeee)
{
genFuncs.SendMessage("tom@
genFuncs.SendMessage("jaso
}
catch(Exception eee)
{
genFuncs.SendMessage("tom@
genFuncs.SendMessage("jaso
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
??? only COMException will fire?
YES Only COM Exception will be invoked.
Sachi
Sachi
> ??? only COMException will fire?
Yes. If you have doubts, just give a try and raise a COMException in your try block and see what happens.
Yes. If you have doubts, just give a try and raise a COMException in your try block and see what happens.
Sachi