Summary
After reading this chapter, you should be able to build an app that functions properly and delivers user value from the logic, UI, and reliability perspectives.
We started the chapter by talking about the importance of handling errors efficiently in your Blazor WebAssembly app. We started by going over how to handle the possible API responses, and then we implemented a global error handler that centralizes the processing of an exception. In the last section, we covered a cool component that’s built for error handling from a UI perspective called ErrorBoundary
. We demonstrated how we can use it and showed its capabilities.
After completing this chapter, you should be able to do the following:
- Understand the crucial need of handling error errors in single-page applications
- Handle failure requests when calling an API endpoint
- Build a centralized error handler that can be used across all the components
- Know how and when to use the
ErrorBoundary
...