I'm currently working on a PHP project where I'm making use of namespaces. I've come across an issue with handling exceptions within these namespaces and I'm kinda stuck.
So basically, I have some code within a specific namespace and I want to throw an exception within that namespace. However, when I try to catch that exception in a different namespace, it just doesn't work!
I'm not sure what I'm doing wrong here. Is there any special way to handle exceptions within PHP namespaces? Can you guys guide me in the right direction? How should I properly handle exceptions in PHP namespaces?
Any help would be highly appreciated! Thanks in advance.