I started using "real" exceptions instead of custom error functions.
I think I don't need a try / catch block every time, and everything is fine, just to throw an exception, but now I get a fatal error due to these uncaught exceptions.
Everything works fine when I set error_reporting (0), but I generally want to avoid errors. Does anyone know an alternative to try / catch or how to throw an exception without getting a fatal error?
Thanks in advance!
Mr. B. source share