Hi,
I am throwing an exception derived from ApplicationException as follows
catch (Exception ex) {
throw new MyException("message", ex);
}
My exception's constructor is:
public ExceptionBase(string aMessage, Exception aInnerException):
base(aMessage, aInnerException)
In the constructor I am finding that "this.StackTrace" is blank, while
"aInnerException.StackTrace" is populated with class name, method and
failing line number as expected. "this.Message" works as expected.
"this.GetType().Name" also works ok.
Is my exception's StackTrace property unpopulated because I am still
inside the Exception's constructor. If so, how do I write MyException
code that will fire after the constructor has completely built the
Exception ?
thanks
Barry Mossman