TAG ARCHIVE
Everything on error-handling.
2 articles tagged error-handling, sorted newest first.
php
Who Owns the Error Handler? PHP 8.5's get_error_handler() and get_exception_handler()
PHP 8.5 finally lets you read the current error and exception handler without setting one first. Here is how to use it to find whatever is swallowing your exceptions.
11 min read →
laravel
Stop Wrapping Everything in try/catch: Renderable and Reportable Exceptions in Laravel 13
Your controllers are full of the same three catch blocks. Move the response into the exception's render() method and the log context into context(), and most of them disappear.
12 min read →