A
ajfish
Hi,
I would like to re-throw an exception but keep the stack trace from
when the exception was originally generated. Is there any way of doing
this (using .Net 1.1)?
I am not throwing it from the same place it was caught (in fact it is
caught in a worker thread which squirrels it away and then the main
thread digs it out later and throws it)
I realise that I could wrap the exeption, but then any calling function
wishing to catch it would have to take special action (to catch the
wrapper rather than the original)
Andy
I would like to re-throw an exception but keep the stack trace from
when the exception was originally generated. Is there any way of doing
this (using .Net 1.1)?
I am not throwing it from the same place it was caught (in fact it is
caught in a worker thread which squirrels it away and then the main
thread digs it out later and throws it)
I realise that I could wrap the exeption, but then any calling function
wishing to catch it would have to take special action (to catch the
wrapper rather than the original)
Andy