Tom Knowlton
asked on
Exception messages
What is the difference between:
//uses ex
genFuncs.SendMessage("tom@ buyersfund .com","Err or deleting EML file in WindowsServiceTrackRequest CLASS: ClassGetStatus Method: DelFile","PATH: " + sUri + "\n\n\nERROR MESSAGE: " + ex);
and
//uses ex.ToString()
genFuncs.SendMessage("tom@ buyersfund .com","Err or deleting EML file in WindowsServiceTrackRequest CLASS: ClassGetStatus Method: DelFile","PATH: " + sUri + "\n\n\nERROR MESSAGE: " + ex.ToString());
Will both work and look the same?
//uses ex
genFuncs.SendMessage("tom@
and
//uses ex.ToString()
genFuncs.SendMessage("tom@
Will both work and look the same?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can you clarify?
ASKER
catch(Exception ex)
{
genFuncs.SendMessage("tom@
}
or
catch(Exception ex)
{
genFuncs.SendMessage("tom@
}