filp / whoops

PHP errors for cool kids
http://filp.github.io/whoops/
MIT License
13.19k stars 604 forks source link

How to get exception? #737

Closed iamaks1993 closed 2 years ago

iamaks1993 commented 2 years ago

In production, i want to send slack notification and do not want to show whoops page.

//Currently i have added above code. $whoops = new \Whoops\Run; $whoops->allowQuit(false); $whoops->writeToOutput(false); $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler); $whoops->register();

But i want error object. How can i get it?

iamaks1993 commented 2 years ago

Implemented this.

https://github.com/filp/whoops/issues/185#issuecomment-38595826