Welcome Guest, Not a member yet? Register   Sign In
Exception Handler Event
#1

(This post was last modified: 07-08-2022, 03:40 PM by php_rocs.)

Hi!
I recently got a service called Honeybadger which lets me log exceptions in a really nice format. They don't have a CodeIgniter integration so I'm looking to integrate it myself. I got stuck while looking into how CodeIgniter 4 handles exceptions. I found the "exceptionHandler" function in vendor/codeigniter4/framework/system/Debug/Exception.php which is really close to what I need.  That method's comment states that it "fires an event that allows custom actions to be taken at this point."  While that sounds like exactly what I need, I can't seem to figure out what it means by "fire an event." All I want to do is call a [docs.honeybadger.io/lib/php/integration/other/] Honeybadger method, passing in any exception that happens.
What is this event thing, and how can I hook into that?
Thank you in advance.
Reply


Messages In This Thread
Exception Handler Event - by matjlars - 07-08-2022, 12:55 PM
RE: Exception Handler Event - by kenjis - 07-08-2022, 05:34 PM
RE: Exception Handler Event - by MGatner - 07-14-2022, 03:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB