error-handler
error-handler copied to clipboard
Support multiple solutions
- Render multiple solutions in UI
- Add Solution Provider Registry like this:
interface SolutionProviderRegisrty { /** * @param callable(\Throwable): SolutionInterface|\Stringable|string $provider */ public function register($provider): void; } // todo interface SolutionInterface {} - https://github.com/yiisoft/error-handler/issues/104 might be implemented like a SolutionProvider
In this case the user can implement its own AI based solution provider, support custom attributes or interfaces
The interface should probably also provide information about which exceptions it is suitable for.