R
Rob
Are there any side effects to creating but not throwing an exception?
Thanks for your help,
Rob
Thanks for your help,
Rob
Rob said:Are there any side effects to creating but not throwing an exception?
Thanks for your help,
Rob
About the same as creating any other object I would guess.
Just for my curiosity, what are you really doing?
I have a set the exception message to a different value in one special
case. I figured I could either pass a boolean through several calls
to get to where the exception is thrown or I could examine the stack
trace to see if a particular class is in the call stack which will
tell me if I should change the exception message. It is an ugly hack,
but probably the least unpleasant of several unpleasant alternatives.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.