How to set a value to Exception.Message or this.Message
hi,
how to set the value to a exception object.
this.Message = "";
or
Exception.Message = "";
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Martin23 pointsPosted Dec 19, 2006, 6:06 AM EST
I'm pretty sure that the "exc.Message" is read only, and thus can't be assigned later.
Of course, you could just make your own exception...