Error Handling In Blazor Web Server Application
I am calling a web API endpoint from my Blazor server application. And I intentionally have not started the application (.Net Core 6 Web Api) with the api service. Meaning, there is no service listening on the specified port. And I was wondering what is the best practice for handling this error. I am assuming it will be handled on the server hosting the api service which will send a message back to my blazor application? Thanks !!! Actually I just thought of something. How can my service return an error message if its not running. So I would have to code for this exception on the client or blazor server end?