0

I need to show syntax errors and unexpected exceptions in my custom module admin grid. Which method is suitable for this in Magento 2.

EDIT

Instead of save into exception.log file, I need to save to db, and show in admin grid.

2 Answers 2

0

When I'm developing with Magento 2 I usually edit app/bootstrap.php and enable the line: ini_set('display_errors', 1);

Hope it helps

0

Please check the below link with an answer.

Custom Exceptions for module for Magento 2

I hope it helps!

1
  • I am looking for something like error handler overriding Commented May 20, 2020 at 6:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.