S
SpreadTooThin
I have a constructor that is being called by a global application
variable.
That constructor is throwing an exception.
As I am not in main() at that point I have no corresponding catch for
that exception.
Ok so what do I do?
I could modify the constructor not to throw an exception...
What else could be done?
Can a method know if there is anyone around to catch the exception
that is about to be thrown?
Or is this blind faith?
variable.
That constructor is throwing an exception.
As I am not in main() at that point I have no corresponding catch for
that exception.
Ok so what do I do?
I could modify the constructor not to throw an exception...
What else could be done?
Can a method know if there is anyone around to catch the exception
that is about to be thrown?
Or is this blind faith?