B
BLUE
In a property i do this:
....
catch(XmlException e)
{
throw new XmlException("Error processing configuration file!",e);
}
Then I catch it in another class:
catch(XmlException e)
{
MessageBox.Show(e.Message + e.InnerException.Message);
}
With the debugger I see that "Error processing configuration file!" is not
in Message property but in a private field called "args".
Why?
How can I obtain "Error processing configuration file!" being in e.Message
or how can I retrieve args content?
....
catch(XmlException e)
{
throw new XmlException("Error processing configuration file!",e);
}
Then I catch it in another class:
catch(XmlException e)
{
MessageBox.Show(e.Message + e.InnerException.Message);
}
With the debugger I see that "Error processing configuration file!" is not
in Message property but in a private field called "args".
Why?
How can I obtain "Error processing configuration file!" being in e.Message
or how can I retrieve args content?