07-06-2009, 07:03 PM
|
#6 (permalink)
|
|
The Acquainted
Join Date: May 2009
Posts: 178
Thanks: 9
|
I agree to a certain extent. Every time someone inputs bad data i am throwing an exception and creating the overhead of instantiating an object when i could just throw out a string. The trade off i assume is I dont have to riddle my code with conditionals saying "if no error keep going" therefore using exceptions and a catch clause i can have far tidier code. Thoughts?
Still can anyone tell me how i create more than one instance of the same exception class without breaking immediatly to the catch clause code on instantiation of the 1st object? is this possible?
|
|
|
|