How to implement an ErrorHandle to wrap the handle error and loading of a resource? - SolidJS