How to treat exception in best way in construct?
option1 - catch exception where object created:
class Account { function __cons
What is the purpose of throwing an exception and immediately catching it? If you want to abort a function on error but not throw an error, you should return.
return
Thus, your first code is always correct. Let the Exception bubble up.