11
is there any way in PHP to set error handler only for specific namespace(s)? I'm building a small framework and I'd like to be able to try-catch all error/warning/notice messages within it's namespace by setting custom error handler and throwing exceptions with it. Errors triggered outside this specific namespace should behave in a regular way.
Can it be done with PHP?
Thank you.