error-handler
error-handler copied to clipboard
Framework independent advanced error handler
14th line cannot be expanded as well as 17th, but I don't know what 17th point is
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start)...
In cases when an exception doesn't implement the `FriendlyExceptionInterface` the exception still may have a PHP doc with a useful description. > [!NOTE] > The description may contain special annotations...
https://github.com/yiisoft/error-handler/pull/75#discussion_r1161128479
It would be nice to be able to customize the appearance of the HTML error page. I mean the CSS style block (colors) and footer markup.
https://github.com/yiisoft/error-handler/blob/6df1df9ba97f1db602221e206911c4daf35f05bb/src/Middleware/ExceptionResponder.php#L83
It can make several ways. **One / Container + Callable** Configuration: ```php $exceptionMap = [ MyNotFoundException::class => MyExceptionHandler::class, ]; ``` Handling: get `MyExceptionHandler` class from container and run as callable...
- Render multiple solutions in UI - Add Solution Provider Registry like this: ```php interface SolutionProviderRegisrty { /** * @param callable(\Throwable): SolutionInterface|\Stringable|string $provider */ public function register($provider): void; } //...