Is there any way to catch exceptions raised during rendering?

When an exception is raised during rendering, Solara displays its traceback as a plain text instead of a page layout. Is it possible to catch such exception and show its traceback in a component on a page? Something like React error boundary would be really helpful here.
Was this page helpful?