T
Tony Johansson
Hi!
Some exception has further information in the Inner Exception property.
For example the SmtpException has useful information in the InnerException
that can be used
Here is an example
catch (SmtpException ex)
{
Exception inner = ex.InnerException;
MessageBox.Show("Could not send message: " + inner.Message,
"Problem sending message", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
So my question is why is not the InnerException.Message information put into
the SmtpException.Message ?
//Tony
Some exception has further information in the Inner Exception property.
For example the SmtpException has useful information in the InnerException
that can be used
Here is an example
catch (SmtpException ex)
{
Exception inner = ex.InnerException;
MessageBox.Show("Could not send message: " + inner.Message,
"Problem sending message", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
So my question is why is not the InnerException.Message information put into
the SmtpException.Message ?
//Tony